It was narrated that Jabir said: "The Messenger of Allah ﷺ forbade writing anything on graves".
The Prophet Muhammad also taught us to show respect to those who have passed away by not disturbing their resting place in any way. We can do this by refraining from writing anything on their graves as well as avoiding activities such as playing music near them or engaging in other disrespectful behavior around them. By following these teachings, we can ensure that we are honoring the dead with dignity and respect while also showing love and compassion towards their families who are grieving their loss.