Sahl reported,

A woman came to the Prophet ﷺ with a woven cloak that had its border still attached.Do you know what a burdah is? They said, "It is a shamlah." He said, "Yes."She said, "I wove it with my own hands and have come to clothe you with it." The Prophet ﷺ took it, being in need of it, and came out to us wearing it as his lower garment.So-and-so admired it and said, "Give it to me to wear. How beautiful it is!"The people said to him, "You did not do well. The Prophet ﷺ put it on because he needed it, then you asked him for it knowing that he never refuses a request."He replied, "By Allah, I did not ask him for it to wear. I asked him for it so that it might be my burial shroud."Sahl said, "And it became his burial shroud."

Bukhari 1277

Sahih

حدثنا عبد الله بن مسلمة حدثنا ابن أبي حازم عن أبيه

عن سهل رضي الله عنه

أن امرأة جاءت النبي ﷺ ببردة منسوجة فيها حاشيتها أتدرون ما البردة قالوا الشملة قال نعم قالت نسجتها بيدي فجئت لأكسوكها فأخذها النبي ﷺ محتاجا إليها فخرج إلينا وإنها إزاره فحسنها فلان فقال اكسنيها ما أحسنها قال القوم ما أحسنت لبسها النبي ﷺ محتاجا إليها ثم سألته وعلمت أنه لا يرد قال إني والله ما سألته لألبسه إنما سألته لتكون كفني قال سهل فكانت كفنه

البخاري 1277صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
One who prepared his shroud during the time of the Prophet ﷺ and was not rebuked for it
Numbering
Darussalam 1277
Bukhari 1277