The Messenger of Allah ﷺ cursed a people who took the graves of their prophets as places of worship.Muhammad bin Bakr's version reads, "The Messenger of Allah ﷺ cursed a people."Khaffaf's version reads, "The Prophet ﷺ said, 'May Allah curse a people who took the graves of their prophets as places of worship.'"
حدثنا محمد بن جعفر حدثنا سعيد ومحمد بن بكر أخبرنا سعيد عن قتادة عن سعيد بن المسيب
أن رسول الله ﷺ لعن قوما اتخذوا قبور أنبيائهم مساجد وقال محمد بن بكر إن رسول الله ﷺ لعن قوما وقال الخفاف إن النبي ﷺ قال لعن الله قوما اتخذوا قبور أنبيائهم مساجد