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." Then he said, "Yes indeed. As for one of them, he used to spread tales, and as for the other, he did not shield himself from his urine."Then he took a fresh stick, broke it in two, and planted one piece on each grave. He said, "Perhaps their punishment will be lightened as long as these do not dry out."

Bukhari 1378

Sahih

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

عن ابن عباس رضي الله عنهما

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

البخاري 1378صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Punishment of the grave due to backbiting and urine
Numbering
Darussalam 1378
Bukhari 1378