Sunan an-Nasa'i, Book 21, Hadith 228 (Nasa'i 2050)

It was narrated from 'Amr bin Hazm that the Messenger of Allah said:

"do not sit on graves."