Aslam

Surah Al-Qalam — 68:49
لَّوۡلَآ أَن تَدَٰرَكَهُۥ نِعۡمَةٞ مِّن رَّبِّهِۦ لَنُبِذَ بِٱلۡعَرَآءِ وَهُوَ مَذۡمُومٞ
Had he not been shown grace by his Lord, he would have certainly been cast onto the open ˹shore˺, still blameworthy.

Commentary

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

Read Tafsir Ibn Kathir