In the Muslims' cemeteries, we find signs with the name, age, and date of birth of the dead person written on it
It is impermissible
to write on the graves because the Prophet (peace be upon him) forbade this and that writing on the graves could lead to Shirk (associating others with Allah in His Divinity or worship). This is because it may lead to glorifying them and exaggerating in this regard and coming to believe that they could bring benefit or harm instead of Allah.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.