It was narrated from Ibn 'Abbas that the Messenger of Allah ﷺ placed a man in his grave at night, and he lit a lamp in his grave.
The Prophet Muhammad's act of lighting a lamp in the man's grave is symbolic of providing guidance for him on his journey into the afterlife. It also serves as an example to us that we should always strive to do good deeds, even if it does not directly benefit us or those around us; rather, it can still benefit those who have passed away from this world by providing them with light on their journey ahead. Furthermore, this hadith teaches us that death is not something to be feared but rather embraced; by showing respect for our dead through acts such as lighting lamps in graves or performing other acts of kindness towards them, we can help ease their transition into the afterlife while also reminding ourselves that death is part of life’s cycle and something that must be accepted eventually.