"When my soul fainted within me, I remembered Yahweh. My prayer came in to you, into your holy temple.
At first thought, it appears that Jonah was a bit late remembering God; but remember him he did and therefore received the blessing.