Sayyiduna Abu Qatadah Ansari (may Allah be pleased with him) reports: The Messenger of Allah (peace and blessings be upon him) said: “All of my Ummah will be granted safety except those who commit sins openly.” It was asked: O Messenger of Allah! Who are those who commit sins openly? He (peace and blessings be upon him) said: “Those who commit an evil deed at night, then Allah conceals it for them, but in the morning they say, ‘O so-and-so! I committed such-and-such sins last night,’ thus Allah removes His covering from them.”
Related hadith on this topic