(3) باب مَا يُكْرَهُ مِنْ كَثْرَةِ السُّؤَالِ وَتَكَلُّفِ مَا لاَ يَعْنِيهِ
Narrated Anas bin Malik:
A man said, "O Allah's Prophet! Who is my father?" The Prophet (ﷺ) said, "Your father is so-and-so." And then the Divine Verse:-- 'O you who believe! Ask not questions about things..(5.101)
Reference: Sahih al-Bukhari 7295
In-book reference: Book 96, Hadith 26
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 9, Book 92, Hadith 398