Prophet of Allah, Yunus was sent to the people of Nivenah near the land of Mosul in Iraq along the river Tigris. As all the Prophet of Allah, prophet yunus invited them to worship only Allah but they rejected him.
When the situation continued for a long time, Prophet Yunus finally left them and told them that punishment will inflict upon them after three days!
When prophet Yunus left them in anger, he went and boarded a ship. Howeer, after the ship has set sail, a big storm came upon them. The waves were huge and ship was in the verge of sinking! Conditions were becoming critical.
Decisions were made after that, that it is necessary to cast a vote to pick someone to be thrown out of the boat to lighten the load.
When they drew the lots, the name of Yunus alaihisalam came out. But the people knew him and did not want to throw him overboard. They repeated casting a vote and again the name of Prophet yunus came out again. They repeated the casting for the third time and again his name came up.
Surah As Saffat 37: 139-141
And, verily, Yûnus (Jonah) was one of the Messengers (139) When he ran to the laden ship, (140) Then he (agreed to) cast lots, and he was among the losers, (141)
Then he was thrown into the wild ravaging sea! Then Allah sent a huge whale to swallow him up. Allah ordered the whale not to eat his flesh or bones and that there he was not the food for the whale
As Saffat 39: 142
Then a (big) fish swallowed as and he had done an act worthy of blame. (142)
When settled down, in the belly of the whale, Yunus alaihisalam thought that he was dead. He tried to move his limbs and they moved and thus he knew he was alive.
So he prostrated to Allah and said, O Lord, I have taken as a place of prayer where no one else has ever worshiped you.”
When Allah made that whale go round and round in the depth of the sea, Prophet Yunus heard the glorification of All merciful by the whale. He even heard the pebbles glorifying Allah.
Everything in this world Glorifies allah. Remember this lesson.
the entire universe is glorifying Allah with praises and thanks. There is nothing in the universe that does not glorify Allah except
– disbelievers among mankind
As Saff 61 :1
Whatsoever is in the heavens and whatsoever is on the earth glorifies Allâh. And He is the All-Mighty, the All-Wise. (1)
At that, prophet Yunus started glorifying Allah himself.
Surah Anbiya 21: 87-88
And (remember) Dhun-Nûn (Jonah), when he went off in anger, and imagined that We shall not punish him (i.e. the calamites which had befallen him)! But he cried through the darkness (saying): Lâ ilâha illa Anta [none has the right to be worshipped but You (O Allâh)], Glorified (and Exalted) are You [above all that (evil) they associate with You]. Truly, I have been of the wrong-doers.” (87) So We answered his call, and delivered him from the distress. And thus We do deliver the believers (who believe in the Oneness of Allâh, abstain from evil and work righteousness) (88)
Abu hurayrah narrated that the Prophet sallallahu alaihi salam said,
“When Allah wanted to keep Yunus in the belly of the whale, he revealed to it.he said, “Take him inside but do not eat his flesh nor break his bones.” When the whale went down to the depth of the sea, Yunus heard a voice. he said to himself, “What is this?” Then Allah revealed to him, while he was inside the whale’s belly, that it was glorification of the sea animals. then while in that state, Yunus also glorified Allah, which was heard by the angels. They then said, O our Lord, we heard a very weak voice coming from unusual land.” Allah said, “That is My salve Yunus. he disobeyed me, so I detained him inside a whale in the sea.” They said, “Is he the pious slave from whom the good deeds ascended to You every day and night?” Allah replied, “yes”. So the angels then pleaded on his behalf, so Allah ordered the whale to throw him out on the shore.”
Ibn Abi Hatim has mentioned in his tafseer on the authority of Anas bin Malik that the Prophet sallallahu alaihi wasalam said
When Yunus the Prophet was in the belly of the whale, he said, O Allah, there is none worthy of worship except You, You are glorified. Indeed I was among the wrongdoers’. This appeared from beneath teh Throne. the angels asked, O Lord, we hear a very weak and familiar voice coming from a strange land. Allah said, “Don’t yuo know who it is?” they replied, “No our Lord, who is he?” Allah said, “It is my salve Yunus.” The angels said, “It is Your slave Yunus from whom accepted prayers and deeds used to ascend to You?” They said, “O Lord, why don’t You bestow Your mercy upon him for what he did during times of comfort and thus free him from this trial? So Allah said, “Yes.” He then ordered the whale and it threw him out of the shore.”
As Saffat 37: 143-144
Had he not been of them who glorify Allâh, (143) He would have indeed remained inside its belly (the fish) till the Day of Resurrection. (144)
It is said that it means had he not glorified Allah therein, and said what he said, and confessed his sins accompanied with repentance, hewould have remained therein till the Day of Resurrection and been resurrected from the belly of the whale.
It may also mean that because he is among those who is always glorifying Allah, who remembered Him and offered prayers frequently.
Imam Ahmad supported this opinion and reported a hadith on the authority of Ibn Abbas that the Prophet sallallahu alaihi wasalam said,
O young boy, I will teach you some words. guard the duties of Allah and Allah will guard you. Also guard the duties of Allah and you will find Him beside you. When you remember Allah in good times, He will remember you when you are in hardship.
So my children, the very same nasihah I will give to you. remember Allah all the time in your time of ease. fear Him. Insya Allah, Allah will support you at your time of difficulties.
So Allah cast him on the bare shore where the beach has no trees or plants. Prophet Yunus was also in the state of sickness and was very weak.
And Allah caused a marrow plant to grow over him.
what is marrow plant?
Some scholars said the wisdom may be that the leaves of the plant itself is soft, plentiful and provide shadow from heat and also flies do not come to it. Also the fruits can be eaten from the tree both cooked and uncooked even with skin and seeds. Allah knows best
Then prophet Yunus went back to his people. But before that, when Prophet Yunus left his people, he also said to them that the punishmnet will inflict them after three days.
Ibn Mas’ood,Mujahid, Qatadah and many others said that when he left them and his people became sure of the punishment befalling them. Then Allah guided them on repentance of their sins. they regretted the way they dealt with their prophet. Then they started imploring Allah for His Mercy while lowering themselves.
Allah with His mercy and kindness removed them from their punishment, which was going to befall on them.
Surah Yunus 10: 98
Was there any town (community) that believed (after seeing the punishment), and its Faith (at that moment) saved it (from the punishment)? (The answer is none,) – except the people of Yûnus (Jonah); when they believed, We removed from them the torment of disgrace in the life of the (present) world, and permitted them to enjoy for a while. (98)