Surah As-Saaffaat

37:143

فَلَوْلَآ أَنَّهُۥ كَانَ مِنَ ٱلْمُسَبِّحِينَ

And had he not been of those who exalt Allah,

Tafsir 37:143

Had it not been that Jonah was one of those who would remember Allah abundantly before whatever afflicted him, and had it not been for his glorifying Allah in the stomach of the whale