The word of Yahweh came to Jonah the second time, saying,
The narrative passes over a number of intervening incidents which arouse our curiosity.  Nothing is given concerning where Jonah was deposited by the fish, what Jonah did next, or where he was when this second commission came from the Lord.  As a speculation, it seems reasonable to suppose that as soon as Jonah was able to do so, he went up to Jerusalem and worshipped and paid his vows in the temple as he had indicated he would do in the psalm-prayer.