The Almighty sent a cloud that hovered over his head and voice came out from it...
The Almighty sent a cloud that hovered over his head and voice came out from it, “You are permitted to express your desire: Ask, whatever you wish. I am always near you.” Ayyub gathered all his strength and sat up with his thighs joined. Then he said, “O My Lord! I swear by Your Might that You never sent any afflictions upon me. But whenever I had the choice of two worship-acts, I preferred the one, which was most difficult for my body. And I never ate without sharing my food with orphans.
Did I not echo Your praise? Did I not thank You sufficiently? Did I not glorify and purify You (from every kind of association)?” Ten thousand tongues of the cloud replied, “O Ayyub Who created you with the temperament that you prayed when all world was asleep? Who is that made worship most likeable to you? Do you think you have obliged the Almighty?
Whereas He has favored you by granting you the divine opportunity to worship and thank Him.” Ayyub picked up a handful of dust and stuffed it in his mouth and said, “I was wrong! And I beg forgiveness. All the bounties and opportunities of worship are from You alone.” The Almighty sent an Angel who kicked the earth and a spring of water gushed out. Ayyub bathed in it and was immediately cured of all diseases and discomfort. His body become more fresh and beautiful than before.
Then Allah caused orchards and gardens to grow around Ayyub. All the wealth, property and farms were restored. The Angel was sitting with him and engaged in conversation when his wife entered with a piece of dried bread. She saw in place of a ruin, a blooming garden and orchards. Instead of Ayyub she saw two handsome men. She began to scream and lament as to what has befallen Ayyub. Ayyub called her and when she came near she recognized him.
Seeing the return of Divine bounties she fell down in a prostration of thankfulness. When she had gone in search of food for Ayyub she was sporting lovely tresses. The people she had approached demanded her for her beautiful tresses in return of food. She cut off her locks and brought food for Ayyub. When Ayyub saw her pruned hair he was infuriated and vowed a hundred lashes for her. But when she told him the story he became sad and regretted his oath.
The Almighty sent a revelation to him to hit her softly with a broom containing a hundred twigs. That would suffice to fulfill his oath.