The Messenger of Allah ﷺ said, "A servant does not commit adultery while he is a believer, nor does he drink wine while he is a believer, nor does he steal while he is a believer, nor does he kill while he is a believer."
أخبرنا عبد الرحمن بن محمد بن سلام قال حدثنا إسحق الأزرق عن الفضيل بن غزوان عن عكرمة
قال رسول الله ﷺ لا يزني العبد حين يزني وهو مؤمن ولا يشرب الخمر حين يشربها وهو مؤمن ولا يسرق وهو مؤمن ولا يقتل وهو مؤمن
Bukhari narrated it in Al-Hudud, chapter "Al-Sariq hina yasriq," no. 6782, from the hadith of Fudayl bin Ghazwan, with the same wording. It is also in Al-Kubra, no. 7076.