Abdullah ibn Mas’ud reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, Allah has not forbidden any deed but that He knew some of you would commit it. I am surely holding you back from swarming into the Hellfire as if you were moths or flies.”
Source: Musnad Aḥmad 3704
Grade: Hasan (fair) according to Al-Arna’ut
عَنْ عَبْدِ اللهِ بْنِ مَسْعُودٍ قَالَ قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِنَّ اللهَ لَمْ يُحَرِّمْ حُرْمَةً إِلَّا وَقَدْ عَلِمَ أَنَّهُ سَيَطَّلِعُهَا مِنْكُمْ مُطَّلِعٌ أَلَا وَإِنِّي آخِذٌ بِحُجَزِكُمْ أَنْ تَهَافَتُوا فِي النَّارِ كَتَهَافُتِ الْفَرَاشِ أَوِ الذُّبَابِ
3704 مسند أحمد بن حنبل
6/236 المحدث شعيب الأرناؤوط خلاصة حكم المحدث إسناده حسن في تخريج المسند لشعيب