On his arrival at Joppa, there was no vessel in port. To try him, God cause a storm to arise, and it carried a vessel back to Joppa, which had made a two days' journey away from the harbor. The prophet interpreted this chance to mean that God approved his plan. He was so rejoiced at the favorable opportunity for leaving land that he paid the whole amount for the entire cargo in advance, no less a sum than four thousand gold denarii. After a day's sailing out from shore, a terrific storm broke loose. Wonderful to relate, it injured no vessel but Jonah's. Thus he was taught the lesson that God is Lord over heaven and earth and sea, and man can hide himself nowhere from His face.
Jonah Boards a Ship to Joppa Fleeing God's Command
Legends of the Jews 8:20