Anyway. Job was a nice man, good behaving, grateful to God, all in all a good person.
And God rewarded him for it:
He had a nice, beautiful wife; nice and many children; good health; good friends; wealth; and a nice home, - everything you need or can dream of. Job was thankful for it, and prayed and thanked God for everything everyday.
The Devil came along, in the mood to mock (maybe because he was a "Fallen Angel", whom God had sent to hell?).
Anyway… and the Devil offered God a bet.
The Devil dared, that for Job it is easy to be grateful with having a wonderful life, wife, family, and stuff. “Job wouldn’t be so grateful anymore, if you would take away some of the nice things he has,” he activated a discussion, when they met on one of their occational encounters. God, who obviously is a gambler and besides very vain, said:
So, first thing next morning, God takes away Job’s beautiful, nice and caring wife, - but Job still is continuing to be grateful and praying. God considerd himself already a winner, when he met the Devil next time. However, the Devil replied:
“Well that was easy: Job still has his children and their love.”
“Okay”, said God, and in an instant he brings illnesses and accidents to Job's well-behaved, nice children. Soon he takes away all them, one after the other, he had like 15 or so. I mean ALL OF THEM, God took away because of a bet with the Devil. – But:
Job was still praying to God, thanking him for everything and that He takes care.
“That was easy”, says the Devil again, on their next meeting, "Well, after all, Job still has his health and good-looking…”
So, God takes also away Job's health and good-looking, by sending him sickness and warts on face and body, and every bad desease there is. Job's face and his whole body hurt, he was very sick, and he looked sick, awful and ugly so that nobody wanted to be near him. - But Job continued to worship God, nevertheless.
“Piece of cake”, the Devil maintained, as God - thinking now he had finally won - smile self-assure at the Devil. “As long as you have friends...", was all the Devil said.
This went on and on. Everytime God thought, he had won the bet, the Devils continued to say that Job still had something left to cling on to.
So, God took away EVERYTHING that Job had left, one, after the other. God took away his friends, then his wealth, and even his home.
But Job had big faith:
He still believed in God, and that God was good, and was doing the right thing for him; and that God knows what he has been doing, and that he loves and cares for him. So even though he had NOTHING left anymore, and was all alone: No wife, no kids, no health, no wealth, no friends, and no home, no nothing, he still was praying in thankfulness to God.
Thus, God won his bet with the Devil in the end.
Shortly after the bet, God gave Job a new wife, new children, new wealth and health as a reconciliation for his suffering.