Muwatta Malik, Book 16, Hadith 45 (Muwatta Malik 573)

Yahya related to me from Malik that Abu'r-Rijal Muhammad ibn Abd ar-Rahman heard his mother Amra bint Abd ar-Rahman say, "The Messenger of Allah, may Allah bless him and grant him peace, cursed both men and women who dug up," meaning those who dug up graves.