Abdullah ibn Mas’ud reported: The Messenger of Allah, peace and blessings be upon him, said, “Verily, Allah has not forbidden matters but that He knows you will be tempted towards them. Thus, I have taken it upon myself to prohibit you lest you fall into the Hellfire just like the falling of a moth or fly.”
Source: Musnad Aḥmad 3704
Grade: Hasan (fair) according to Al-Arna’ut
عَنْ عَبْدِ اللهِ بْنِ مَسْعُودٍ قَالَ قَالَ رَسُولُ اللهِ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِنَّ اللهَ لَمْ يُحَرِّمْ حُرْمَةً إِلَّا وَقَدْ عَلِمَ أَنَّهُ سَيَطَّلِعُهَا مِنْكُمْ مُطَّلِعٌ أَلَا وَإِنِّي آخِذٌ بِحُجَزِكُمْ أَنْ تَهَافَتُوا فِي النَّارِ كَتَهَافُتِ الْفَرَاشِ أَوِ الذُّبَابِ
3704 مسند أحمد بن حنبل
6/236 المحدث شعيب الأرناؤوط خلاصة حكم المحدث إسناده حسن في تخريج المسند