Allah knows the best. But I could find something which is very close to this topic.
Narrated Abu Huraira:
Allah's Messenger (ﷺ) said, "When an adulterer commits illegal sexual intercourse, then he is not a believer at the time he is doing it; and when somebody drinks an alcoholic drink, then he is not believer at the time of drinking, and when a thief steals, he is not a believer at the time when he is stealing; and when a robber robs and the people look at him, then he is not a believer at the time of doing it." Abu Huraira in another narration, narrated the same from the Prophet (ﷺ) with the exclusion of robbery. Sahih Bukhari Vol. 8, Book 81, Hadith 763
Other versions are this and the one below
He (saw) also said: "If a man commits zina, faith comes out of him and hovers over him like a cloud, then when he stops, faith returns to him." Narrated by Abu Dawood (4960) and al-Tirmidhi (2625);