Snopes rates this claim as false.
"Did the man claim to be swallowed by a whale?" No.
> The article features the image of shirtless man that is claimed to be the fisherman, Luigi Marquez — but it isn’t. The man pictured is actually named “Mike” and the picture was taken from a 2015 YouTube video in which Mike demonstrates turning his swim trunks into a flotation device.