# The Story of Prophet Yunus in the Darkness: Prayer, Accountability and Mercy

> When Prophet Yunus departed from his people in frustration before receiving divine permission, his journey led him onto a heavily laden ship and into the depths of the sea inside a great fish. Calling out in the layers of darkness with complete humility and glorification of God, Yunus received deliverance, healing, and the rare joy of seeing his entire community believe.

## 21:87

وَذَا ٱلنُّونِ إِذ ذَّهَبَ مُغَٰضِبًۭا فَظَنَّ أَن لَّن نَّقْدِرَ عَلَيْهِ فَنَادَىٰ فِى ٱلظُّلُمَٰتِ أَن لَّآ إِلَٰهَ إِلَّآ أَنتَ سُبْحَٰنَكَ إِنِّى كُنتُ مِنَ ٱلظَّٰلِمِينَ

And [mention] the man of the fish, when he went off in anger and thought that We would not decree [anything] upon him. And he called out within the darknesses, "There is no deity except You; exalted are You. Indeed, I have been of the wrongdoers."

## 21:88

فَٱسْتَجَبْنَا لَهُۥ وَنَجَّيْنَٰهُ مِنَ ٱلْغَمِّ ۚ وَكَذَٰلِكَ نُۨجِى ٱلْمُؤْمِنِينَ

So We responded to him and saved him from the distress. And thus do We save the believers.

## 37:139

وَإِنَّ يُونُسَ لَمِنَ ٱلْمُرْسَلِينَ

And indeed, Jonah was among the messengers.

## 37:142

فَٱلْتَقَمَهُ ٱلْحُوتُ وَهُوَ مُلِيمٌۭ

Then the fish swallowed him, while he was blameworthy.

## 37:143

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

And had he not been of those who exalt Allah,

## 37:144

لَلَبِثَ فِى بَطْنِهِۦٓ إِلَىٰ يَوْمِ يُبْعَثُونَ

He would have remained inside its belly until the Day they are resurrected.

## Departing Before Permission and the Weight of Frustration

Among the prophetic accounts in the Qur’an, the story of Prophet Yunus—also referred to in [Surah Al-Anbiya 21:87](https://quran.com/21/87) as Dhu al-Nun, the companion of the fish, and in [Surah Al-Qalam 68:48](https://quran.com/68/48) as the companion of the whale—speaks with extraordinary tenderness to anyone who has ever felt overwhelmed by the weight of an unanswered effort. In [Surah As-Saffat 37:139](https://quran.com/37/139), the Qur’an begins by affirming unambiguously that Yunus was indeed one of the messengers. His calling was authentic and his devotion sincere, yet his community’s stubborn refusal to heed his warnings brought him to a moment of deep human exhaustion.

In [21:87](https://quran.com/21/87), the text notes that he departed in anger, thinking that God would not constrict him or hold him to a strict accounting for leaving his people once their rejection seemed complete. A prophet’s station, however, is not a private vocation that can be set aside at personal discretion; a messenger remains at his post until God commands otherwise. By walking away before receiving divine leave, Yunus stepped out of the patience required of messengers—a lesson later recalled explicitly to the Prophet Muhammad in [Surah Al-Qalam 68:48](https://quran.com/68/48), instructing him to wait patiently for the decree of his Lord and not be like the companion of the fish when he called out while choked with distress. For a complementary portrait of decades-long perseverance in calling a community, compare [the story of Prophet Nuh and the Ark](/en/stories/story-of-prophet-nuh).

## The Laden Ship and the Casting of Lots

In [Surah As-Saffat 37:140–142](https://quran.com/37/140-142), the narrative follows Yunus to the coast with striking economy of language. He boarded a heavily laden ship, seeking distance from the city that had rejected his message. Once out at sea, the overloaded vessel faced grave peril, forcing those aboard to cast lots to determine who must be cast into the water to lighten the ship. In [37:141](https://quran.com/37/141), Yunus participated in the drawing of lots and was among the losers who were designated to go overboard.

Notice how the Qur’an refrains from dramatizing the storm with maritime folklore or naming the sailors and ports. Instead, it directs all our attention to the moral and spiritual turning point in [37:142](https://quran.com/37/142): the great fish swallowed him while he was blameworthy—having left his mission prematurely. What Yunus had sought by boarding the ship was escape from constriction; what he encountered in the belly of the fish under the waves was physical constriction in its most literal form, echoing the precise verb used in [21:87](https://quran.com/21/87).

## Calling Out Within the Layers of Darkness

Inside the depths, cut off from light, air, and every human resource, Yunus experienced what [Surah Al-Anbiya 21:87](https://quran.com/21/87) describes in the plural as the darknesses—layered obscurity beneath the sea, inside the creature, and within the night of trial. Yet it was precisely in that utter stillness that his heart awakened to complete clarity. He did not offer excuses for why his people had provoked him, nor did he complain that his trial was disproportionate to his hastiness.

Instead, in [21:87](https://quran.com/21/87), he called out through the darkness with a three-part confession that has remained one of the most beloved supplications in Islamic spiritual life. First, he affirmed pure monotheism: that there is no deity worthy of worship except God. Second, he glorified God above all imperfection or injustice, acknowledging that whatever constriction had befallen him was entirely wise and just. Third, he took full personal accountability, confessing that he had indeed been among the wrongdoers. Like the first prayer of return in [the story of Prophet Adam](/en/stories/story-of-prophet-adam) and the quiet supplication in [the story of Prophet Ayyub](/en/stories/story-of-prophet-ayyub), Yunus’s prayer shows that in the Qur’an, acknowledging one’s own shortcoming before God is the very key that unlocks deliverance.

## The Power of Lifelong Remembrance

In [Surah As-Saffat 37:143–144](https://quran.com/37/143-144), the Qur’an reveals a vital dimension of why Yunus was rescued: had he not been among those who constantly glorify God, he would certainly have remained in its belly until the Day of Resurrection. Commentators have long reflected on the two interconnected meanings of this verse. It refers both to Yunus’s immediate glorification of God inside the belly of the fish and to his established habit of remembering and praising God throughout his life before the crisis ever occurred.

When a person builds an ongoing relationship with God in times of ease and ordinary freedom, their heart knows immediately how to turn back to Him when sudden darkness closes in. And in [Surah Al-Anbiya 21:88](https://quran.com/21/88), God appends a universal promise to Yunus’s deliverance: thus We responded to him and saved him from the distress, and thus do We save the believers. The rescue of Yunus is explicitly lifted out of ancient history and offered to every believer who calls upon God with sincere tawhid, reverence, and honest self-accountability. Readers exploring how the Qur’an addresses emotional constriction can trace this same promise in our reflection on [patience and ease](/en/verses/patience-and-ease) and [inner peace](/en/topics/peace).

## Cast Ashore and Sheltered by the Gourd Plant

The physical restoration of Yunus in [Surah As-Saffat 37:145–146](https://quran.com/37/145-146) is described with gentle, concrete care. God cast him onto the open, barren shore while he was weak and ill from his ordeal, and caused a plant of the gourd family—broad-leaved, cooling, and protective—to grow over him. Just as God provided a stream and ripe dates for Maryam in her exhaustion, divine mercy attended to Yunus’s fragile body on the empty beach, shielding him from the sun and nursing him back to strength before returning him to his prophetic responsibility.

## A Community Restored and the Completion of Mission

Once healed and chosen again by his Lord’s grace ([68:50](https://quran.com/68/50)), Yunus was sent back in [37:147–148](https://quran.com/37/147-148) to a population of a hundred thousand or more. What followed is celebrated in [Surah Yunus 10:98](https://quran.com/10/98) as a unique moment in sacred history. Whereas other towns rejected the warnings of their messengers until punishment became irreversible, the people of Yunus recognized the truth after his departure, turned in sincere collective repentance, and believed. Because of their faith, God removed the disgraceful punishment from them in the life of this world and granted them provision and enjoyment for a season.

The prophet who had walked away thinking his effort had failed returned to witness the complete transformation of his city. Studied alongside [our guide to reading the Qur’an with context](/en/lessons/reading-the-quran-with-context), the story of Yunus reminds us never to judge the final outcome of sincere work prematurely, and never to think any darkness is too deep for the prayer of an honest heart.

## FAQ

### Where is the story of Prophet Yunus told in the Qur’an?

Key passages of Prophet Yunus’s narrative appear in Surah Al-Anbiya (21:87–88), Surah As-Saffat (37:139–148), Surah Yunus (10:98), and Surah Al-Qalam (68:48–50).

### Why was Prophet Yunus tested in the sea?

As explained in Surah Al-Anbiya 21:87 and Surah As-Saffat 37:140, Yunus departed from his community in anger and frustration over their refusal to believe before God had given him permission to leave his post.

### What is the prayer of Yunus in the darkness (Surah Al-Anbiya 21:87)?

In verse 21:87, Yunus called out in the darkness affirming that there is no deity except God, glorifying Him above all imperfection, and confessing that he had indeed been among the wrongdoers.

### What happened to the people of Yunus in Surah Yunus 10:98?

Unlike other ancient communities that rejected their messengers until destruction overtook them, the community of Yunus repented sincerely when they saw the signs of warning, and God removed the punishment from them and granted them enjoyment for a time.


## Sources

- [Surah Al-Anbiya 21:87–88](https://quran.com/21/87-88)
- [Surah As-Saffat 37:139–148](https://quran.com/37/139-148)
- [Surah Yunus 10:98](https://quran.com/10/98)
- [Surah Al-Qalam 68:48–50](https://quran.com/68/48-50)