Jami` at-Tirmidhi Book 10, Hadith 88
"The Messenger of Allah prohibited plastering graves, writing on them, building over them, and treading on them."
from the Prophet, similar (to no. 1050), but it does not contain "From Abu Idris" and this is what is correct.
"The Messenger of Allah passed by the graves of Al-Madinah, so he turned his face towards them and said: (As-Salamu alaikum ya ahlul-qubur! Yaghfirul-lahu lana wa lakun, antum salafuna wa nahnu bil-athar.) 'Peace be upon you O inhabitants of the grave! May Allah forgive us and you; you are our predecessors and we are to follow you.'"