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 gossip, and the other did not shield himself from his urine."He then called for a fresh palm branch, split it into two pieces, and planted one piece on each grave. 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 chapter on wudu (218) and in the chapter on funerals (1361), and Muslim narrated it in the chapter on purification (292), both through the route of Amash, who said, "I heard Mujahid narrating from Tawus, from Ibn Abbas..." and he mentioned the hadith. The wording given is Muslim's. In Bukhari's wording, "Then he took a fresh palm branch..." It also states, they said, "O Messenger of Allah, why did you do this?" He said, "Perhaps it will lighten their punishment as long as the branches have not dried out."Khattabi and others disapproved of people placing palm branches and similar things in graves, acting upon this hadith. The scholar Ibn Baz explained the reason for this, saying, "Because the Prophet ﷺ only did this for specific graves whose occupants' punishment he had been informed of. Had it been a prescribed practice, he would have done it for every grave. The senior companions, such as the caliphs, did not do it, and they were all more knowledgeable of the sunnah than Burayda ." Hashiya ala Fath al-Bari (320/1).He is referring to what Bukhari mentioned in the chapter on funerals, in the section titled "The Palm Branch on the Grave," namely that Burayda Aslami instructed that two palm branches be placed in his grave. Ibn Saad connected this narration through Murawaq Ajli, who said, "Burayda instructed that two palm branches be placed in his grave." He died in the nearest part of Khurasan. It is said that he instructed this in emulation of the Prophet ﷺ, applying the hadith in its general sense and not viewing it as specific to those two men.Bukhari, may Allah have mercy on him, mentioned Burayda's instruction, and immediately after it mentioned Ibn Umar's statement that he saw a tent set up over the grave of Abdul-Rahman bin Abu Bakr and said, "Remove it, boy. Only his deeds shade him." It appears from the way Bukhari arranged this that he considered the matter specific to those two men. See what can be learned from this hadith in Minna Kubra (78/1).As for what Daraqutni narrated (128/1) through the route of Israel, from Abu Yahya, from Mujahid, from Ibn Abbas, raising it to the Prophet ﷺ, where he said, "Most of the punishment of the grave comes from urine, so guard yourselves from urine," this is rejected. Abu Yahya is Qattat Kufi, the seller of chopped fodder. Ahmad said, "Israel narrated from him many very rejected hadiths." It was said to Yahya bin Saeed Qattan, "Israel narrated three hundred hadiths from Abu Yahya Qattat." He said, "The fault did not come from him alone, it came from both of them," meaning that the objectionable content came from the two of them together, Israel and Abu Yahya Qattat, because each of them was described as having poor memory and mixing things up.