Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:37:142

Then the fish swallowed him, while he was blameworthy.  

Then the whale swallowed him while he was blameworthy, that is, while he was guilty of a blameworthy thing, having gone to sea and embarked the ship without his Lord’s permission.
القرآن:٣٧:١٤٢

فَالْتَقَمَهُ الْحُوتُ وَهُوَ مُلِيمٌ  

{فالتقمه الحوت} ابتلعه {وهو مليم} أي آت بما يلام عليه من ذهابه إلى البحر وركوبه السفينة بلا إذن من ربه.