An-Najm • EN-TAZKIRUL-QURAN
﴿ ٱلَّذِينَ يَجْتَنِبُونَ كَبَٰٓئِرَ ٱلْإِثْمِ وَٱلْفَوَٰحِشَ إِلَّا ٱللَّمَمَ ۚ إِنَّ رَبَّكَ وَٰسِعُ ٱلْمَغْفِرَةِ ۚ هُوَ أَعْلَمُ بِكُمْ إِذْ أَنشَأَكُم مِّنَ ٱلْأَرْضِ وَإِذْ أَنتُمْ أَجِنَّةٌۭ فِى بُطُونِ أُمَّهَٰتِكُمْ ۖ فَلَا تُزَكُّوٓا۟ أَنفُسَكُمْ ۖ هُوَ أَعْلَمُ بِمَنِ ٱتَّقَىٰٓ ﴾
“As for those who avoid the [truly] grave sins and shameful deeds - even though they may sometimes stumble behold, thy Sustainer is abounding in forgiveness. He is fully aware of you when He brings you into being out of dust, and when you are still hidden in your mothers’ wombs: do not, then, consider yourselves pure - [for] He knows best as to who is conscious of Him.”
Man has been created with human weaknesses. So, it is not required that he be as pure as the angels. Almighty God has given full guidance to man as to what he should do and what he should not. However, man may be pardoned in the case of lesser offences (lamam), i.e. indulging in some mischief because of fleeting emotion, on the condition that he should immediately realise his lapse and, being ashamed of it, seek pardon of his Lord.