(3) باب مَا يُكْرَهُ مِنْ كَثْرَةِ السُّؤَالِ وَتَكَلُّفِ مَا لاَ يَعْنِيهِ
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
In-book reference: Book 96, Hadith 20
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 92, Hadith 392