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:144

He would have remained inside its belly until the Day they are resurrected.  

he would have tarried in its belly until the day when they are raised, in other words, the whale’s belly would have been his tomb until the Day of Resurrection.
القرآن:٣٧:١٤٤

لَلَبِثَ فِي بَطْنِهِ إِلَىٰ يَوْمِ يُبْعَثُونَ  

{للبث في بطنه إلى يوم يبعثون} لصار بطن الحوت قبرا له إلى يوم القيامة.