Mishkat al-Masabih
Mishkat al-Masabih 276
وَعَنْ عَلِيٍّ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يُوشِكُ أَنْ يَأْتِيَ عَلَى النَّاسِ زَمَانٌ لَا يَبْقَى مِنَ الْإِسْلَامِ إِلَّا اسْمُهُ وَلَا يَبْقَى مِنَ الْقُرْآنِ إِلَّا رَسْمُهُ مَسَاجِدُهُمْ عَامِرَةٌ وَهِيَ خَرَابٌ مِنَ الْهُدَى عُلَمَاؤُهُمْ شَرُّ مَنْ تَحْتَ أَدِيمِ السَّمَاءِ مِنْ عِنْدِهِمْ تَخْرُجُ الْفِتْنَةُ وَفِيهِمْ تَعُودُ» . رَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَان
ʿAlī reported that the Messenger of God said: ‘A time is near when nothing of Islam will remain except its name, and nothing of the Qur’an except its written form. Their mosques will be flourishing, yet devoid of guidance. Their scholars will be the worst people beneath the sky: tribulation will emerge from them and return among them.’ Al-Bayhaqī transmitted it in Shuʿab al-Īmān.
Translation notes
The accompanying grading labels this report weak. The Arabic contrasts the mosques’ outward flourishing with their being ‘ruined’ with respect to guidance.