Abu Hurairah reported,

The Messenger of Allah ﷺ passed by a grave and said, "Bring me two palm branches." He placed one at the head of the grave and the other at the feet.Someone asked, "Prophet of Allah, will this benefit him?"He replied, "Some of the punishment of the grave will be lightened for him as long as these two branches remain moist."

Azami 3854

Hasan

عن أبي هريرة قال

مر رسول الله ﷺ على قبر فقال: ائتوني بجريدتين فجعل إحداهما عند رأسه، والأخرى عند رجليه، فقيل: يا نبي الله! أينفعه ذلك؟ قال: لن يزال يخفف عنه بعض عذاب القبر ما كان فيهما ندو.

الأعظمي 3854حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
Most of the punishment of the grave is due to urine and tale-bearing
Numbering
Jami al-Kamil 3854 (2nd edition)
Azami 3854