Mishkat al-Masabih 338
وَعَنِ ابْنِ عَبَّاسٍ قَالَ مَرَّ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِقَبْرَيْنِ فَقَالَ إِنَّهُمَا لَيُعَذَّبَانِ وَمَا يُعَذَّبَانِ فِي كَبِيرٍ أَمَّا أَحدهمَا فَكَانَ لَا يَسْتَتِرُ مِنَ الْبَوْلِ - وَفِي رِوَايَةٍ لمُسلم: لَا يستنزه مِنَ الْبَوْلِ - وَأَمَّا الْآخَرُ فَكَانَ يَمْشِي بِالنَّمِيمَةِ ثمَّ أَخذ جَرِيدَة رطبَة فَشَقهَا نِصْفَيْنِ ثُمَّ غَرَزَ فِي كُلِّ قَبْرٍ وَاحِدَةً قَالُوا يَا رَسُول الله لم صنعت هَذَا قَالَ لَعَلَّه يُخَفف عَنْهُمَا مَا لم ييبسا
From Ibn ʿAbbas, who said: The Prophet ﷺ passed by two graves and said: "They are being punished, and they are not being punished for something great. As for one of them, he did not screen himself from urine" — and in a narration of Muslim: "did not keep himself clean of urine" — "and as for the other, he used to go about spreading tales." Then he took a fresh palm branch, split it in two halves, and planted one in each grave. They said: "O Messenger of Allah, why did you do this?" He said: "Perhaps it will be lightened for them as long as they do not dry out."