Al-Ilmam bi-Ahadith al-Ahkam 469
عَن أبي هُرَيْرَة رَضِيَ اللَّهُ عَنْه أَن رَسُول الله ﷺ قَالَ: " لعن الله زوارات الْقُبُور ". أخرجه التِّرْمِذِيّ وَقَالَ: حَدِيث صَحِيح . (أَبُو دَاوُد عَن ابْن عَبَّاس قَالَ: " لعن رَسُول الله زوّارات الْقُبُور، والمتخذين عَلَيْهَا الْمَسَاجِد، والسُّرج ") .
From Abu Hurayrah, may Allah be pleased with him, that the Messenger of Allah ﷺ said: "Allah has cursed the women who frequently visit graves." At-Tirmidhi recorded it and said: A sound hadith. (Abu Dawud, from Ibn ʿAbbas, who said: "The Messenger of Allah cursed the women who frequently visit graves, and those who take mosques and lamps over them.")