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:39:54

And return ˹in repentance˺ to your Lord and submit to Him before the punishment comes upon you; then you will not be helped.  

And turn, return, ˹penitently˺ to your Lord and submit, perform deeds sincerely, to Him, before the chastisement comes on you, whereupon you will not be helped, to ward it off, if you have not repented.
القرآن:٣٩:٥٤

وَأَنِيبُوا إِلَىٰ رَبِّكُمْ وَأَسْلِمُوا لَهُ مِنْ قَبْلِ أَنْ يَأْتِيَكُمُ الْعَذَابُ ثُمَّ لَا تُنْصَرُونَ  

{وأنيبوا} ارجعوا {إلى ربكم وأسلموا} أخلصوا العمل {له من قبل أن يأتيكم العذاب ثم لا تنصرون} بمنعه إن لم تتوبوا.