The Messenger of Allah ﷺ passed by two graves and said, "These two are being punished, and they are not being punished for something major. One of them used to spread tales, and the other did not shield himself from his urine."He then called for a fresh palm branch, split it in two, and planted one piece on this grave and the other on that one. He said, "Perhaps their punishment will be lightened as long as these do not dry out."In another narration, "The other did not keep himself clean from urine."
مر رسول الله ﷺ له على قبرين، فقال: أما إنهما ليعذبان، وما يعذبان في كبير، أما أحدهما فكان يمشي بالنميمة، وأما الآخر فكان لا يستتر من بوله. قال: فدعا بعسيب رطب فشقه باثنين، ثم غرس على هذا واحدا، وعلى هذا واحدا، ثم قال: لعله يخفف عنهما ما لم ييبسا. وفي رواية: وكان الآخر لا يستنزه عن البول، أو من البول.
Bukhari narrated it in the Book of Wudu (218) and in the Book of Funerals (1361), and Muslim narrated it in the Book of Purification (292), both of them through Amash, who said, I heard Mujahid narrating from Tawus, from Ibn Abbas, who said, and he mentioned it. The wording given is that of Muslim, and the wording of Bukhari is similar.