Sunan an-Nasa'i · Hadith 2046
The Book of Funerals - كتاب الجنائز
أخبرنا عمرو بن علي، حدثنا خالد بن الحارث، قال حدثنا شعبة، عن قتادة، عن سعيد بن المسيب، عن عائشة، أن النبي صلى الله عليه وسلم قال " لعن الله قوما اتخذوا قبور أنبيائهم مساجد " .
It was narrated from Aishah that the Prophet said: "May Allah curse people who take the graves of their prophets as Masjids."
Gradings are classical jarḥ-wa-taʿdīl, name-matched to a rijāl index (not individually re-verified).