Full Sharh — Mishkat al-Masabih 260
وَعَنْ عَلِيٍّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يُوشِكُ أَنْ يَأْتِيَ عَلَى النَّاسِ زَمَانٌ لَا يَبْقَى مِنَ الْإِسْلَامِ إِلَّا اسْمُهُ وَلَا يَبْقَى مِنَ الْقُرْآنِ إِلَّا رَسْمُهُ مَسَاجِدُهُمْ عَامِرَةٌ وَهِيَ خَرَابٌ مِنَ الْهُدَى عُلَمَاؤُهُمْ شَرُّ مَنْ تَحْتَ أَدِيمِ السَّمَاءِ مِنْ عِنْدِهِمْ تَخْرُجُ الْفِتْنَةُ وَفِيهِمْ تَعُودُ» . رَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
English Translation
‘Ali reported God’s messenger as saying, “ A time is soon coming to mankind when nothing of Islam but its name will remain and only the written form of the Qur’an will remain. Their mosques will be in fine condition but will be devoid of guidance, their learned men will be the worst people under heaven, corruption coming forth from them and returning among them.” Baihaqi transmitted it in Shu'ab al-iman.
Source
Mishkat al-Masabih(مشكاة المصابيح)
Knowledge
Hadith Number
260