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:53:32

Those who avoid the major sins and immoralities, only ˹committing˺ slight ones. Indeed, your Lord is vast in forgiveness. He was most knowing of you when He produced you from the earth and when you were fetuses in the wombs of your mothers. So do not claim yourselves to be pure; He is most knowing of who fears Him.  

Those who avoid grave sins and abominations, excepting lesser offences, that is, minor sins, such as a look, a kiss or a touch (this constitutes a discontinuous exception, in other words the meaning is: but lesser offences are forgiven by the avoidance of grave sins). Truly your Lord is of vast forgiveness, for such ˹lesser sins˺ and for accepting repentance. The following was revealed regarding those who used to say, ‘˹What of˺ our prayers, our fasting, and our pilgrimage!’. He knows you best ˹from the time˺ when He produced you from the earth, that is to say, ˹when˺ He created your father Adam from dust, and when you were hidden ˹fetuses˺ (ajinna is the plural of janīn) in the bellies of your mothers. So do not claim purity for yourselves, do not praise yourselves, that is, in admiration; but ˹if it is done˺ in recognition of ˹God’s˺ grace, then that is fine. He knows best those who are God-fearing.
القرآن:٥٣:٣٢

الَّذِينَ يَجْتَنِبُونَ كَبَائِرَ الْإِثْمِ وَالْفَوَاحِشَ إِلَّا اللَّمَمَ ۚ إِنَّ رَبَّكَ وَاسِعُ الْمَغْفِرَةِ ۚ هُوَ أَعْلَمُ بِكُمْ إِذْ أَنْشَأَكُمْ مِنَ الْأَرْضِ وَإِذْ أَنْتُمْ أَجِنَّةٌ فِي بُطُونِ أُمَّهَاتِكُمْ ۖ فَلَا تُزَكُّوا أَنْفُسَكُمْ ۖ هُوَ أَعْلَمُ بِمَنِ اتَّقَىٰ  

{الذين يجتنبون كبائر الإثم والفواحش إلا الَّلمَمَ} هو صغار الذنوب كالنظرة والقبلة واللمسة فهو استثناء منقطع والمعنى لكن اللمم يغفر باجتناب الكبائر {إن ربك واسع المغفرة} بذلك وبقبول التوبة، ونزل فيمن كان يقول: صلاتنا صيامنا حجنا: {هو أعلم} أي عالم {بكم إذ أنشأكم من الأرض} أي خلق آباكم آدم من التراب {وإذ أنتم أجنة} جمع جنين {في بطون أمهاتكم فلا تزكوا أنفسكم} لا تمدحوها على سبيل الإعجاب أما على سبيل الاعتراف بالنعمة فحسن {هو أعلم} أي عالم {بمن اتقى}.