Jabir bin Abdullah reported,

The Messenger of Allah ﷺ came to Abdullah bin Ubayy after he had been placed in his grave. He ordered that he be brought out, then placed him upon his knees, blew some of his saliva onto him, and clothed him in his shirt. Allah knows best. He had previously given Abbas a shirt to wear.Sufyan said, Abu Harun Yahya said, the Messenger of Allah ﷺ had two shirts on, so the son of Abdullah said to him, "Messenger of Allah, clothe my father in your shirt that touches your skin."Sufyan said, they hold the view that the Prophet ﷺ clothed Abdullah in his shirt as a recompense for what he had done.

Bukhari 1350

Sahih

حدثنا علي بن عبد الله حدثنا سفيان قال عمرو سمعت

جابر بن عبد الله رضي الله عنهما قال

أتى رسول الله ﷺ عبد الله بن أبي بعد ما أدخل حفرته فأمر به فأخرج فوضعه على ركبتيه ونفث عليه من ريقه وألبسه قميصه فالله أعلم وكان كسا عباسا قميصا قال سفيان وقال أبو هارون يحيى وكان على رسول الله ﷺ قميصان فقال له ابن عبد الله يا رسول الله ألبس أبي قميصك الذي يلي جلدك قال سفيان فيرون أن النبي ﷺ ألبس عبد الله قميصه مكافأة لما صنع

البخاري 1350صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Exhuming the deceased from the grave or the lahd for a reason
Numbering
Darussalam 1350
Bukhari 1350