The Pen - 68:48 Be patient that the judgment of your Lord may be realized. Do not be like the companion of the fish (Jonah). He called out while he was being swallowed (by the fish).
How did he call out when he was swallowed?
The Prophets/21:87 "And ZanNun (i.e. Jonah, whose name has the letter ´Nun´ in it)... He left his post in protest. He thought that We could not control him. Finally, in the darkness (in the belly of the fish) he said, "There is no god but You. You are almighty. I have done wrong,"he pleaded."
The Prophets/21:88 We responded to his supplication and delivered him from sorrow. This is how We deliver those who believe.

Those Who Set The Ranks/37:139 Jonah was also one of the messengers.
Those Who Set The Ranks/37:140 He fled to a full ship.
Those Who Set The Ranks/37:141 He resisted and became of those who slipped.
Those Who Set The Ranks/37:142 The fish swallowed him, and he was responsible for that.
Those Who Set The Ranks/37:143 Had he not remembered (God) and thought,
Those Who Set The Ranks/37:144 He would remain in her womb until the Day of Resurrection.