Mishkat al-Masabih 277
وَعَن زِيَاد بن لبيد قَالَ ذَكَرَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ شَيْئًا فَقَالَ: «ذَاكَ عِنْدَ أَوَانِ ذَهَابِ الْعِلْمِ» . قُلْتُ: يَا رَسُولَ اللَّهِ وَكَيْفَ يَذْهَبُ الْعِلْمُ وَنحن نَقْرَأ الْقُرْآن ونقرئه أبناءنا ويقرؤه ابناؤنا أَبْنَاءَهُم إِلَى يَوْم الْقِيَامَة قَالَ: «ثَكِلَتْكَ أُمُّكَ زِيَادُ إِنْ كُنْتُ لَأُرَاكَ مِنْ أَفْقَهِ رَجُلٍ بِالْمَدِينَةِ أَوَلَيْسَ هَذِهِ الْيَهُودُ وَالنَّصَارَى يَقْرَءُونَ التَّوْرَاةَ وَالْإِنْجِيلَ لَا يَعْمَلُونَ بِشَيْءٍ مِمَّا فِيهِمَا» . رَوَاهُ أَحْمَدُ وَابْنُ مَاجَهْ وَرَوَى التِّرْمِذِيُّ عَنهُ نَحوه
From Ziyad ibn Labid, who said: The Prophet ﷺ mentioned something and said: "That will be at the time when knowledge goes away." I said: "O Messenger of Allah, how will knowledge go away when we recite the Quran and teach it to our children, and our children will teach it to their children until the Day of Resurrection?" He said: "May your mother be bereft of you, Ziyad! I used to consider you one of the men with the most understanding in Madinah. Do not these Jews and Christians recite the Torah and the Injil, yet they do not act on anything in them?" Reported by Ahmad and Ibn Majah, and at-Tirmidhi reported something similar from him.