(24) باب بَيَانِ نُقْصَانِ الإِيمَانِ بِالْمَعَاصِي وَنَفْيِهِ عَنِ الْمُتَلَبِّسِ بِالْمَعْصِيَةِ عَلَى إِرَادَةِ نَفْيِ كَمَالِهِ
It is narrated on the authority of Abu Huraira:
A fornicator who fornicates is not a believer as long as he commits fornication, and no one who steals is a believer as long as he commits theft, and no one who drinks wine is a believer as long as he drinks it, and repentance may be accepted after that.
Reference: Sahih Muslim 57 f
In-book reference: Book 1, Hadith 114
USC-MSA web (English) reference(deprecated numbering scheme): Book 1, Hadith 109