Sunan Abi Dawud, Book 21, Hadith 148 (Abu Dawud 3237)

Narrated Abdullah ibn Abbas:

The Messenger of Allah (ﷺ) cursed women who visit graves, those who built mosques over them and erected lamps (there).