Prophet Yunus (AS) spent many years inviting the people of Nineveh to worship Allah alone. When they refused to listen, he felt deeply saddened and boarded a ship to leave without waiting for Allah's command.
Out at sea, a fierce storm began to rock the ship. To lighten the load, lots were drawn and Prophet Yunus (AS) was cast into the sea. Right then, by Allah's command, a giant whale swam up and swallowed him gently without hurting him at all!
Inside the whale's belly, beneath the deep sea, in the middle of the night — surrounded by three layers of darkness — Prophet Yunus (AS) called out to Allah from the bottom of his heart: "La ilaha illa Anta, Subhanaka inni kuntu minaz-zalimin" (There is no god except You; exalted are You. Indeed, I have been of the wrongdoers).
Allah heard his sincere dua, forgave him, and commanded the whale to carry him safely back to the shore.