Surah Al-Qalam, ayah 49

68:49

لَّوۡلَآ أَن تَدَٰرَكَهُۥ نِعۡمَةٞ مِّن رَّبِّهِۦ لَنُبِذَ بِٱلۡعَرَآءِ وَهُوَ مَذۡمُومٞ ٤٩

Llawlā an tadārakahū ni'matum mir rabbihī lanubidha bil-'arā'i wahuwa madhmūm

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

Footnotes

1735 But instead, Allāh accepted his repentance and provided means for his recovery. See 37:139-148.