Jonah prayed to the LORD his God from the belly of the fish.
Jonah finally comes to the place of prayer. Jonah finally comes to the place when he will turn to God. Jonah finally comes to the place where he turns to God. Jonah comes to the place where his faith is quickened. He may be in pitch dark, but he gets clarity about God.
Sometimes it takes confinement by life's circumstances to get us to pray and for our faith to rise up into clarity about God. God may let us get boxed in so that we will cry out to Him and express faith that says, "you are my only hope and I am your child who puts his or her faith entirely in you".
There is no better time to start praying than now. It's never too late to start talking to God. Jonah waited until his circumstances went from bad to worse to terminal. God kept him alive, God saved him with the giant fish; so that he could pray, so that Jonah could reach out to God.
Jonah was headed towards death and God delayed and forestalled and kept death for Jonah at bay, so that Jonah could express himself and pray to God. Have you ever considered that people might have conversations, prayers, with God right before they die or think they are going to die?
Jonah was in the fish for some time before he prayed. He had time to reflect that he was not dead and that God had saved him. What was next, he did not know, but what he did know is that he was alive at that moment. From that place, he prayed.
We can pray to God from anywhere and at any time.