Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:135dMuḥammad b. Ḥātim > Kathīr b. Hishām > Jaʿfar b. Burqān > Yazīd b. al-Aṣam > Abū Hurayrah

I heard Abu Huraira saying that the Messenger of Allah ﷺ observed: people will certainly ask you about everything till they will propound: Allah created every thing, but who created Allah?  

مسلم:١٣٥dحَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ حَدَّثَنَا كَثِيرُ بْنُ هِشَامٍ حَدَّثَنَا جَعْفَرُ بْنُ بُرْقَانَ حَدَّثَنَا يَزِيدُ بْنُ الأَصَمِّ قَالَ سَمِعْتُ أَبَا هُرَيْرَةَ يَقُولُ

قَالَ رَسُولُ اللَّهِ ﷺ لَيَسْأَلَنَّكُمُ النَّاسُ عَنْ كُلِّ شَىْءٍ حَتَّى يَقُولُوا اللَّهُ خَلَقَ كُلَّ شَىْءٍ فَمَنْ خَلَقَهُ  


See similar narrations below:

Collected by Bukhārī
bukhari:7296al-Ḥasan b. Ṣabbāḥ > Shabābah > And Rqāʾ > ʿAbdullāh b. ʿAbd al-Raḥman > Anas b. Mālik

Messenger of Allah ﷺ said, "People will not stop asking questions till they say, 'This is Allah, the Creator of everything, then who created Allah?' "  

البخاري:٧٢٩٦حَدَّثَنَا الْحَسَنُ بْنُ صَبَّاحٍ حَدَّثَنَا شَبَابَةُ حَدَّثَنَا وَرْقَاءُ عَنْ عَبْدِ اللَّهِ بْنِ عَبْدِ الرَّحْمَنِ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ يَقُولُ

قَالَ رَسُولُ اللَّهِ ﷺ لَنْ يَبْرَحَ النَّاسُ يَتَسَاءَلُونَ حَتَّى يَقُولُوا هَذَا اللَّهُ خَالِقُ كُلِّ شَىْءٍ فَمَنْ خَلَقَ اللَّهَ