(3) باب النَّهْيِ عَنْ بِنَاءِ الْمَسَاجِدِ عَلَى الْقُبُورِ وَاتِّخَاذِ الصُّوَرِ فِيهَا وَالنَّهْيِ عَنِ اتِّخَاذِ الْقُبُورِ مَسَاجِدَ
Abu Huraira reported:
The Messenger of Allah (ﷺ) said: Let there be curse of Allah upon the Jews and the Christians for they have taken the graves of their apostles as places of worship.
Reference: Sahih Muslim 530 b
In-book reference: Book 5, Hadith 26
USC-MSA web (English) reference(deprecated numbering scheme): Book 4, Hadith 1081