أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، حَدَّثَنَا خَالِدُ بْنُ الْحَارِثِ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ قَتَادَةَ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ عَائِشَةَ، أَنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ ‏"‏ لَعَنَ اللَّهُ قَوْمًا اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسَاجِدَ ‏"‏ ‏.‏

It was narrated from Aishah that the Prophet said: "May Allah curse people who take the graves of their prophets as Masjids." Translation Not Available

Book Ref: Sunan An Nisai Book 21 Hadith 2046
Web Ref:  Sunan An Nisai Vol 3 Book 21 Hadith 2048