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:40:9

And protect them from the evil consequences ˹of their deeds˺. And he whom You protect from evil consequences that Day - You will have given him mercy. And that is the great attainment."  

And shield them from evil deeds, that is, ˹from˺ the chastisement thereof; for whomever You shield from evil deeds that day, the Day of Resurrection, verily him You will have had been merciful to; and that is indeed the supreme triumph’.
القرآن:٤٠:٩

وَقِهِمُ السَّيِّئَاتِ ۚ وَمَنْ تَقِ السَّيِّئَاتِ يَوْمَئِذٍ فَقَدْ رَحِمْتَهُ ۚ وَذَٰلِكَ هُوَ الْفَوْزُ الْعَظِيمُ  

{وقهم السيئات} أي عذابها {ومن تق السيئات يومئذ} يوم القيامة {فقد رحمته وذلك هو الفوز العظيم}.