Yunus (Jonah) when he was swallowed by a whale, he admitted his wrong-doing and asked for forgiveness,
(And ˹remember˺ when the Man of the Whale stormed off ˹from his city˺ in a rage, thinking We would not restrain him.1 Then in the ˹veils of˺ darkness2 he cried out, “There is no god ˹worthy of worship˺ except You. Glory be to You! I have certainly done wrong.” So We answered his prayer and rescued him from anguish. And so do We save the ˹true˺ believers. ) Al-Anbiya 21:87-88
يونس عليه السلام عندما ابتلعه الحوت ، لبث في بطنه و دعى ربه و استغفر
(لاَّ إِلَـٰهَ إِلاَّ أَنتَ سُبْحَانَكَ إِنِّي كُنتُ مِنَ ٱلظَّالِمِينَ ) فَاسْتَجَبْنَا لَهُ وَنَجَّيْنَاهُ مِنَ الْغَمِّ ۚ وَكَذَٰلِكَ نُنجِي الْمُؤْمِنِينَ ﴿٨٨﴾) الأنبياء 21: 87 -88