Sunan an-Nasa'i, Book 21, Hadith 227 (In-Book) ⓘ
It was narrated that Ibn Abbas said: "The Messenger of Allah cursed women who visit graves, and those who take them as Masjid and put lamps on them."
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا عَبْدُ الْوَارِثِ بْنُ سَعِيدٍ، عَنْ مُحَمَّدِ بْنِ جُحَادَةَ، عَنْ أَبِي صَالِحٍ، عَنِ ابْنِ عَبَّاسٍ، قَالَ : لَعَنَ رَسُولُ اللَّهِ صلى الله عليه وسلم زَائِرَاتِ الْقُبُورِ وَالْمُتَّخِذِينَ عَلَيْهَا الْمَسَاجِدَ وَالسُّرُجَ .
also referenced under: Hadith 2043 (Reference) & Volume 3, Book 21, Hadith 2045 (DarusSalam)