Then Jonah prayed to the LORD his God from the belly of the fish,  saying,
“I called out to the LORD, out of my distress,
and he answered me;
out of the belly of Sheol I cried,
and you heard my voice.
 For you cast me into the deep,
into the heart of the seas,
and the flood surrounded me;
all your waves and your billows
passed over me.
 Then I said, ‘I am driven away
from your sight;
yet I shall again look
upon your holy temple.’
 The waters closed in over me to take my life;
the deep surrounded me;
weeds were wrapped about my head
 at the roots of the mountains.
I went down to the land
whose bars closed upon me forever;
yet you brought up my life from the pit,
O LORD my God.
 When my life was fainting away,
I remembered the LORD,
and my prayer came to you,
into your holy temple.
 Those who pay regard to vain idols
forsake their hope of steadfast love.
 But I with the voice of thanksgiving
will sacrifice to you;
what I have vowed I will pay.
Salvation belongs to the LORD!”
 And the LORD spoke to the fish, and it vomited Jonah out upon the dry land. (ESV)
Jonah Goes to Nineveh
 Then the word of the LORD came to Jonah the second time, saying,  “Arise, go to Nineveh, that great city, and call out against it the message that I tell you.”  So Jonah arose and went to Nineveh, according to the word of the LORD. Now Nineveh was an exceedingly great city, three days’ journey in breadth.  Jonah began to go into the city, going a day’s journey. And he called out, “Yet forty days, and Nineveh shall be overthrown!”  And the people of Nineveh believed God. They called for a fast and put on sackcloth, from the greatest of them to the least of them.
The People of Nineveh Repent
 The word reached the king of Nineveh, and he arose from his throne, removed his robe, covered himself with sackcloth, and sat in ashes.  And he issued a proclamation and published through Nineveh, “By the decree of the king and his nobles: Let neither man nor beast, herd nor flock, taste anything. Let them not feed or drink water,  but let man and beast be covered with sackcloth, and let them call out mightily to God. Let everyone turn from his evil way and from the violence that is in his hands.  Who knows? God may turn and relent and turn from his fierce anger, so that we may not perish.”
 When God saw what they did, how they turned from their evil way, God relented of the disaster that he had said he would do to them, and he did not do it. (ESV)