The Messenger of Allah ﷺ passed by two graves and said, "These two are being punished, and they are not being punished for something major. As for this one, he used to not shield himself from his urine. As for this one, he used to spread tale-bearing."Then he called for a fresh palm branch, split it in two, and planted one piece on this grave and the other on that grave. He then said, "Perhaps their punishment will be lightened so long as these do not dry out."
قال مر رسول الله ﷺ على قبرين، فقال: إنهما ليعذبان، وما يعذبان في كبير، أما هذا: فكان لا يستتر من بوله، وأما هذا: فكان يمشي بالنميمة ثم دعا بعسيب رطب فشقه باثنين، فغرس على هذا واحدا، وعلى هذا واحدا، ثم قال: لعله يخفف عنهما ما لم ييبسا.
Bukhari narrated it in al-Adab (6052) and Muslim narrated it in al-Taharah (292), both through the route of Waki, from Amash, who said, I heard Mujahid narrating from Tawus, from Ibn Abbas, and he mentioned it.