Hadith on Sins: Allah forgives everyone but sinners in public

Abu Huraira reported: The Messenger of Allah, peace and blessings be upon him, said, “Everyone from my nation will be forgiven except those who sin in public. Among them is a man who commits an evil deed in the night that Allah has hidden for him, then in the morning he says: O people, I have committed this sin! His Lord had hidden it during the night but in the morning he reveals what Allah has hidden.

Source: Ṣaḥīḥ al-Bukhārī 5721, Ṣaḥīḥ Muslim 2990

Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim

عَنْ أَبِي هُرَيْرَةَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كُلُّ أُمَّتِي مُعَافًى إِلَّا الْمُجَاهِرِينَ وَإِنَّ مِنْ الْمُجَاهَرَةِ أَنْ يَعْمَلَ الرَّجُلُ بِاللَّيْلِ عَمَلًا ثُمَّ يُصْبِحَ وَقَدْ سَتَرَهُ اللَّهُ عَلَيْهِ فَيَقُولَ يَا فُلَانُ عَمِلْتُ الْبَارِحَةَ كَذَا وَكَذَا وَقَدْ بَاتَ يَسْتُرُهُ رَبُّهُ وَيُصْبِحُ يَكْشِفُ سِتْرَ اللَّهِ عَنْهُ

5721 صحيح البخاري كتاب الأدب باب ستر المؤمن على نفسه

2990 صحيح مسلم كتاب الزهد والرقائق باب النهي عن هتك الإنسان ستر نفسه