Hadithcore
Mishkat al-Masabih, 60
graded· Zubair `Aliza'i

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.

وَعَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «إِذَا زَنَى الْعَبْدُ خَرَجَ مِنْهُ الْإِيمَانُ فَكَانَ فَوْقَ رَأْسِهِ كَالظُّلَّةِ فَإِذا خرج من ذَلِك الْعَمَل عَاد إِلَيْهِ الايمان» . رَوَاهُ التِّرْمِذِيّ وَأَبُو دَاوُد

References1 variant
In-Book Reference
Book 1, Hadith 54