Sunan Abi Dawud, Book 42, Hadith 94 (Abu Dawud 4691)

Abu Hurairah reported the Messenger of Allah (May peace be upon him) as saying :

When one commits fornication, one is not a believer ; when one steals, one is not a believer ; when one drinks, one is not a believer ; and repentance is placed before him.