Ayyub, peace be upon him, was a prophet of Allah who passed through a severe trial. The Quran tells us that hardship and suffering struck him, and that he lost his family as well.
Yet there was no complaint in his prayer, only humility. He simply laid his state before Allah:
۞ وَأَيُّوبَ إِذۡ نَادَىٰ رَبَّهُۥٓ أَنِّي مَسَّنِيَ ٱلضُّرُّ وَأَنتَ أَرۡحَمُ ٱلرَّٰحِمِينَ
“And [mention] Job, when he called to his Lord, "Indeed, adversity has touched me, and You are the most merciful of the merciful."”
Surah Al-Anbya 21:83
Translation: Saheeh International (QuranEnc)
Allah answered him. The command came: strike the ground with your foot. A spring of cool water burst out — to wash in and to drink. His suffering was lifted.
Allah gave him back his family, and as many again with them — a mercy from Him and a reminder for people of understanding.
وَخُذۡ بِيَدِكَ ضِغۡثٗا فَٱضۡرِب بِّهِۦ وَلَا تَحۡنَثۡۗ إِنَّا وَجَدۡنَٰهُ صَابِرٗاۚ نِّعۡمَ ٱلۡعَبۡدُ إِنَّهُۥٓ أَوَّابٞ
“[We said], "And take in your hand a bunch [of grass] and strike with it and do not break your oath." Indeed, We found him patient, an excellent servant. Indeed, he was one repeatedly turning back [to Allāh].”
Surah Sad 38:44
Translation: Saheeh International (QuranEnc)
ⓘ Many tales are told about this prophet; most have no reliable source. Only what the Quran says is kept here.