Abdullah bin Abbas reported,

The Prophet ﷺ passed by two graves and said, "These two are being punished, and they are not being punished for something major. As for one of them, he did not shield himself from urine." Waki said, "from his urine." "And as for the other, he used to walk about spreading malicious gossip."Then he took a fresh palm branch, split it into two halves, and planted one piece on each grave.They asked, "Messenger of Allah, why did you do this?"He replied, "Perhaps their punishment will be lightened so long as these do not dry out." Waki said, "until they dry out."

Ahmad 1980

Sahih

حدثنا أبو معاوية ووكيع المعنى قالا حدثنا الأعمش عن مجاهد قال وكيع سمعت مجاهدا يحدث عن طاوس

عن ابن عباس قال

مر النبي ﷺ بقبرين فقال إنهما ليعذبان وما يعذبان في كبير أما أحدهما فكان لا يستنزه من البول قال وكيع من بوله وأما الآخر فكان يمشي بالنميمة ثم أخذ جريدة فشقها بنصفين فغرز في كل قبر واحدة فقالوا يا رسول الله لم صنعت هذا قال لعلهما أن يخفف عنهما ما لم ييبسا قال وكيع تيبسا

أحمد 1980صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 1980
Ahmad 1980