Allah Ta’ala tells us about Ayyub عليه السلام, and the trials that struck him, affecting his wealth, children and physical health.
He had plenty of livestock, cattle and crops, many children and beautiful houses, and he was tested in these things, losing every thing he had. Then he was tested with regard to his body, and he was left alone on the edge of the city and there was no one who treated him with compassion apart from his wife, who took care of him. It was said that it reached the stage where she was in need, so she started to serve people (to earn money) for his sake.
Nabi صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَم said:
(The people who are tested the most severely are the Prophets, then the righteous, then the next best and the next best).
According to another Hadith:
(A man will be tested according to his level of religious commitment; the stronger his religious commitment, the more severe will be his test.)
The Prophet of Allah, Ayyub عليه السلام, upon him be peace, had the utmost patience, and he is the best example of that. Yazid bin Maysarah said: “When Allah tested Ayyub عليه السلام, upon him be peace, with the loss of his family, wealth and children, and he had nothing left, he started to focus upon the remembrance of Allah Ta’ala, and he said: `I praise You, the Lord of lords, Who bestowed His kindness upon me and gave me wealth and children, and there was no corner of my heart that was not filled with attachment to these worldly things, then You took all of that away from me and You emptied my heart, and there is nothing to stand between me and You. If my enemy Iblis knew of this, he would be jealous of me. ‘ When Iblis heard of this, he became upset. And Ayyub عليه السلام,, said: `O Lord, You gave me wealth and children, and there was no one standing at my door complaining of some wrong I had done to him. You know that. I used to have a bed prepared for me, but I forsook it and said to myself: You were not created to lie on a comfortable bed. I only forsook that for Your sake.”’ This was recorded by Ibn Abi Hatim. Ibn Abi Hatim recorded from Abu Hurayrah رضي الله عنه that Nabi صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَم said:
(When Allah healed Ayyub عليه السلام, He sent upon him a shower of golden locusts, and he started to pick them up and gather them in his garment. It was said to him, “O Ayyub, have you not had enough” He said, “O Lord, who can ever have enough of Your mercy) The basis of this Hadith is recorded in the Two Sahihs, as we shall see below.
(and We restored his family to him (that he had lost) and the like thereof along with them) It was reported that Ibn `Abbas said: “They themselves were restored to him.” This was also narrated by Al-`Awfi from Ibn `Abbas. Something similar was also narrated from Ibn Mas`ud and Mujahid, and this was the view of Al-Hasan and Qatadah. Mujahid said: “It was said to him, `O Ayyub, your family will be with you in Paradise; if you want, We will bring them back to you, or if you want, We will leave them for you in Paradise and will compensate you with others like them.’ He said, `No, leave them for me in Paradise.’ So they were left for him in Paradise, and he was compensated with others like them in this world.”
(as a mercy from Ourselves) means, `We did that to him as a mercy from Allah towards him.’
(and a Reminder for all those who worship Us.) means, `We made him an example lest those who are beset by trials think that We do that to them because We do not care for them, so that they may take him as an example of patience in accepting the decrees of Allah and bearing the trials with which He tests His servants as He wills.’ And Allah has the utmost wisdom with regard to that.
(85. And (remember) Isma`il, Idris and Dhul-Kifl: All were from among the patient.) (86. And We admitted them to Our mercy. Verily, they were of the righteous.) Isma`il, Idris and Dhul-Kifl Isma`il was the son of Ibrahim Al-Khalil, peace be upon them both. He has already been mentioned in Surah Maryam, where mention was also made of Idris. From the context and the fact that Dhul-Kifl is mentioned alongside Prophets, it appears that he was also a Prophet. Others say that he was a righteous man, a just king and a fair judge. Ibn Jarir refrained from making any decisive comment. And Allah knows best.
(87. And (remember) Dhun-Nun, when he went off in anger, and imagined that We shall not punish him! But he cried through the darknesses (Zulumat) (saying): “There is no God but You, Glorified be You! Truly, I have been of the Zalimin wrongdoers.”) (88. So We answered his call, and delivered him from the distress. And thus We do deliver the believers.)