Surah Al-Anbiyaa

21:84

فَٱسْتَجَبْنَا لَهُۥ فَكَشَفْنَا مَا بِهِۦ مِن ضُرٍّۢ ۖ وَءَاتَيْنَٰهُ أَهْلَهُۥ وَمِثْلَهُم مَّعَهُمْ رَحْمَةًۭ مِّنْ عِندِنَا وَذِكْرَىٰ لِلْعَٰبِدِينَ

So We responded to him and removed what afflicted him of adversity. And We gave him [back] his family and the like thereof with them as mercy from Us and a reminder for the worshippers [of Allah].

Tafsir 21:84

And so I accepted his prayer and removed the harm that had befallen him; I granted him not just the family he had lost, but also more along with them. I did all that out of My Mercy, and so that it serves as a reminder for each subservient worshipper of Allah, in order that he may bear patience just as Job bore patience.