Sahih al-Bukhari 7289
Book 96: Holding Fast to the Qur'an and Sunnah · Narrated by Sa`d bin Abi Waqqas
Arabic
حَدَّثَنَا عَبْدُ اللَّهِ بْنُ يَزِيدَ الْمُقْرِئُ، حَدَّثَنَا سَعِيدٌ، حَدَّثَنِي عُقَيْلٌ، عَنِ ابْنِ شِهَابٍ، عَنْ عَامِرِ بْنِ سَعْدِ بْنِ أَبِي وَقَّاصٍ، عَنْ أَبِيهِ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " إِنَّ أَعْظَمَ الْمُسْلِمِينَ جُرْمًا مَنْ سَأَلَ عَنْ شَىْءٍ لَمْ يُحَرَّمْ، فَحُرِّمَ مِنْ أَجْلِ مَسْأَلَتِهِ ".
English translation
Narrated Sa`d bin Abi Waqqas:The Prophet (ﷺ) said, "The most sinful person among the Muslims is the one who asked about something which had not been prohibited, but was prohibited because of his asking
Reference: Sahih al-Bukhari 7289, Book of Holding Fast to the Qur'an and Sunnah. English translation by Dr. Muhammad Muhsin Khan.