Jonah's Prayer of Thanksgiving for Deliverance

21 Then Jonah prayed to Yahweh, his God, out of the fish’s belly. 2 He said,

“I called because of my affliction to Yahweh.
He answered me.
Out of the belly of Sheol I cried.
You heard my voice. 3 For you threw me into the depths,
in the heart of the seas.
The flood was all around me.
All your waves and your billows passed over me. 4 I said, ‘I have been banished from your sight;
yet I will look again toward your holy temple.’ 5 The waters surrounded me,
even to the soul.
The deep was around me.
The weeds were wrapped around my head. 6 I went down to the bottoms of the mountains.
The earth barred me in forever:
yet have you brought up my life from the pit, Yahweh my God. 7 “When my soul fainted within me, I remembered Yahweh.
My prayer came in to you, into your holy temple. 8 Those who regard lying vanities forsake their own mercy. 9 But I will sacrifice to you with the voice of thanksgiving.
I will pay that which I have vowed.
Salvation belongs to Yahweh.”

10 Yahweh spoke to the fish, and it vomited out Jonah on the dry land.

The Repentance of Nineveh

31 The word of Yahweh came to Jonah the second time, saying, 2 “Arise, go to Nineveh, that great city, and preach to it the message that I give you.” 3 So Jonah arose, and went to Nineveh, according to the word of Yahweh. Now Nineveh was an exceedingly great city, three days’ journey across. 4 Jonah began to enter into the city a day’s journey, and he cried out, and said, “Yet forty days, and Nineveh shall be overthrown!”

5 The people of Nineveh believed God; and they proclaimed a fast, and put on sackcloth, from the greatest of them even to the least of them. 6 The news reached the king of Nineveh, and he arose from his throne, and took off his royal robe, covered himself with sackcloth, and sat in ashes. 7 He made a proclamation and published through Nineveh by the decree of the king and his nobles, saying, “Let neither man nor animal, herd nor flock, taste anything; let them not feed, nor drink water; 8 but let them be covered with sackcloth, both man and animal, and let them cry mightily to God. Yes, let them turn everyone from his evil way, and from the violence that is in his hands. 9 Who knows whether God will not turn and relent, and turn away from his fierce anger, so that we might not perish?” 10 God saw their works, that they turned from their evil way. God relented of the disaster which he said he would do to them, and he didn’t do it.