صحيح البخاري Sahih Bukhari كتاب الجنائز The Book of Al-Janaiz (Funerals)
بَابُ مَا يُكْرَهُ مِنِ اتِّخَاذِ الْمَسَاجِدِ عَلَى الْقُبُورِ:

(61) Chapter. What is disliked of establishing places for worship (mosques) over the graves.

1 hadith
Hadith 1330
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُوسَى ، عَنْ شَيْبَانَ ، عَنْ هِلَالٍ هُوَ الْوَزَّانُ ، عَنْ عُرْوَةَ ، عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا ، عَنِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ فِي مَرَضِهِ الَّذِي مَاتَ فِيهِ : " لَعَنَ اللَّهُ الْيَهُودَ ، وَالنَّصَارَى اتَّخَذُوا قُبُورَ أَنْبِيَائِهِمْ مَسْجِدًا " ، قَالَتْ : وَلَوْلَا ذَلِكَ لَأَبْرَزُوا قَبْرَهُ غَيْرَ أَنِّي أَخْشَى أَنْ يُتَّخَذَ مَسْجِدًا .
Narrated `Urwa: Aisha said, "The Prophet in his fatal illness said, 'Allah cursed the Jews and the Christians because they took the graves of their Prophets as places for praying."' Aisha added, "Had it not been for that, the grave of the Prophet (p.b.u.h) would have been made prominent but I am afraid it might be taken (as a) place for praying.
Hadith Reference Sahih Bukhari / The Book of Al-Janaiz (Funerals) / Hadith: 1330
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة