Saad bin Abu Waqqas reported,

The Messenger of Allah ﷺ said, "The supplication of Dhun-Nun when he called out from within the belly of the whale was, 'There is no god but You, glory be to You. Indeed, I have been among the wrongdoers' [Anbiya 21:87]. No Muslim man ever supplicates with these words for anything without Allah answering him."

Azami 11285

Hasan

عن سعد بن أبي وقاص قال

قال رسول الله ﷺ: دعوة ذي النون إذ دعا وهو في بطن الحوت {لا إله إلا أنت سبحنك إني كنت من الظلمين} فإنه لم يدع بها رجل مسلم في شيء قط إلا استجاب الله له.

الأعظمي 11285حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Supplications, remembrances, and prayer upon the chosen Prophet ﷺ
Chapter
Supplications for various occasions
Section
What is said during distress, worry, grief, and hardship
Numbering
Jami al-Kamil 11285 (2nd edition)
Azami 11285