Mishkat al-Masabih #692
Prayer
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَعَنِ الْحَسَنِ مُرْسَلًا قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «يَأْتِي عَلَى النَّاسِ زَمَانٌ يَكُونُ حَدِيثُهُمْ فِي مَسَاجِدِهِمْ فِي أَمْرِ دُنْيَاهُمْ. فَلَا تُجَالِسُوهُمْ فَلَيْسَ لِلَّهِ فِيهِمْ حَاجَةٌ» . رَوَاهُ الْبَيْهَقِيّ فِي شعب الْإِيمَان
Al-Hasan reported in mursal form that God's Messenger said, “A time is coming when people will talk in their mosques about their worldly affairs, so do not sit with them, for God has nothing to do with them.”
Baihaqi transmitted it in Shu'ab al-iman.
Topics
About Mishkat al-Masabih
This hadith is #692 from Mishkat al-Masabih, in the Book of Prayer.