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