Abu Huraira reported that God's messenger said, “When a servant of God commits fornication faith departs from him and there is something like an awning over his head; but when he quits that action faith returns to him.”
Tirmidhi and Abu Dawud transmitted it.