Sunan Ibn Majah #3936
Tribulations 36:11
It was narrated from Abu Hurairah that the Messenger of Allah (ﷺ)said:
“The adulterer, at the time he is committing adultery, is notabeliever; (the wine drinker) at the time he is drinking, is not abeliever; the thief, at the time he is stealing, is not a believer;the plunderer, at the time he is plundering with the people lookingon, is not a believer.”