The sea was getting rougher and rougher. So [the sailors] asked [Jonah], “What should we do to you to make the sea calm down for us?”
“Pick me up and throw me into the sea,” he replied, “and it will become calm. I know that it is my fault that this great storm has come upon you.”
Instead, the men did their best to row back to land. But they could not, for the sea grew even wilder than before. Then they cried out to the Lord, “Please, Lord, do not let us die for taking this man’s life. Do not hold us accountable for killing an innocent man, for you, Lord, have done as you pleased.” Then they took Jonah and threw him overboard, and the raging sea grew calm. At this the men greatly feared the Lord, and they offered a sacrifice to the Lord and made vows to him.
Now the Lord provided a huge fish to swallow Jonah, and Jonah was in the belly of the fish three days and three nights.
Quoted from BibleHub