عَنْ أَنَسِ بْنِ مَالِكٍ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَجُلٌ يَا رَسُولَ اللَّهِ مَنْ أَبِي قَالَ أَبُوكَ فُلَانٌ فَنَزَلَتْ يَا أَيُّهَا الَّذِينَ آمَنُوا لَا تَسْأَلُوا عَنْ أَشْيَاءَ إِنْ تُبْدَ لَكُمْ تَسُؤْكُمْ [سورة المائدة: ١٠١] إِلَى تَمَامِ الْآيَةِ
Narrated by Sayyiduna Anas bin Malik (may Allah be pleased with him): A man said, "O Messenger of Allah! Who is my father?" The Prophet (peace and blessings be upon him) replied, "Your father is so-and-so." Then this verse was revealed: {یٰٓاَیُّھَا الَّذِیْنَ اٰمَنُوْا لَا تَسْئَـلُوْا عَنْ اَشْیَائَ اِنْ تُبْدَ لَکُمْ تَسُؤْکُمْ وَاِنْ تَسْئَـلُوْا عَنْہَا حِیْنَیُنَزَّلُ الْقُرْاٰنُ تُبْدَ لَکُمْ عَفَا اللّٰہُ عَنْہَا وَاللّٰہُ غَفُوْرٌ حَلِیْمٌ۔} … O you who have believed! Do not ask about things which, if they are made apparent to you, will distress you. But if you ask about them while the Qur'an is being revealed, they will be made apparent to you. Allah has pardoned that, and Allah is Most Forgiving, Most Forbearing.