It was narrated from Aishah that the Prophet said:"May Allah curse people who take the graves of their prophets as Masjids
Hadith No. 2046
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih