Yahweh prepared a great fish to swallow up Jonah, and Jonah was in the belly of the fish three days and three nights.
The King James translators made an unfortunate mistranslation of  Matthew 12:38-40, in which this great fish was called "a whale"; but that word is nowhere found in the Scriptures in connection with the events recorded here.