Surah Al-Qalam

68:49

لَّوْلَآ أَن تَدَٰرَكَهُۥ نِعْمَةٌۭ مِّن رَّبِّهِۦ لَنُبِذَ بِٱلْعَرَآءِ وَهُوَ مَذْمُومٌۭ

If not that a favor from his Lord overtook him, he would have been thrown onto the naked shore while he was censured.

Tafsir 68:49

Had it not been for the mercy of Allah reaching him, the whale would have thrown him on a barren land, rebuked.