Peace
According to Islam, the Prophet Yunus [Jonah], peace be upon him, was swallowed by a big fish and he spent a number of days in the belly of that fish, praying and worshiping his God Allmighty, and after Yunus [as] was inspired to say a special prayer, that went: "There is no God but You, Glory be to You, I was indeed wrong", Allah Allmighty made the fish spit out Yunus [as] on the shore.
Yunus [as] had fled from his people in anger...after they wouldn't accept his message, and Allah decided to punish him for that impatience.
When Yunus [as] set of on a boat with some other people, the boat began to rock to and fro violently, and the people of the boat were afraid that if they didn't throw someone out, that the boat would sink, so they decided to draw lots with the travellers names to see who to throw out. The name of the Prophet Yunus [as] came up and the people knew he was a pious person so they decided to do it agian. The name of Yunus [as] came up three times in a row and they had no choice but to throw him out, and once they threw him out...the fish swallowed him.
May the guidance of God be upon all.