It was narrated from ‘Abdur-Rahman bin Hassan bin Thabit that his father said:
“The Messenger of Allah (ﷺ) cursed women who visit graves.”