So We answered his call, and We removed the distress that was on him, and We restored his family to him (that he had lost), and the like thereof along with them - as a mercy from Ourselves and a Reminder for all who worship Us." Surah 21: 83-84
Almighty Allah also instructed: And remember Our slave Job, when he invoked his Lord (saying): "Verily! Satan has touched me with distress (by losing my health) and torment (by losing my wealth)!" Allah said to him: "Strike the ground with your foot: This is a spring of water to wash in, cool and a (refreshing) drink." And We gave him (back) his family, and along with them the like thereof, as a Mercy from Us, and a reminder for those who understand. Surah 38: 41-43
Job obeyed, and almost immediately his good health was restored. Meanwhile, his faithful wife could no longer bear to be parted from her husband and returned to him to beg his forgiveness, desiring to serve him. On entering her house, she was amazed at the sudden change: Job was again healthy! She embraced him and thanked Allah for His mercy.
Job was now worried, for he had taken an oath to punish her with a hundred strokes if he regained health, but he had no desire to hurt her. He knew if he did not fulfill the oath, he would be guilty of breaking a promise to Allah. Therefore, in His wisdom and mercy, Allah came to the assistance of His faithful servant, and advised him: And take in your hand a bundle of thin grass and strike therewith (your wife), and break not your oath." Truly! We found him patient. How excellent (a) slave! Verily, he was ever oft-returning in repentance (to Us)!" Surah 38: 44