The Prophet ﷺ lay down on a straw mat, and it left marks on his skin. I said, "May my father and mother be sacrificed for you, Messenger of Allah. If only you had let us know, we would have spread something on it to protect you."The Messenger of Allah ﷺ replied, "What have I to do with this world? My relationship with this world is only like that of a rider who takes shade under a tree, then moves on and leaves it behind."
حدثنا يحيى بن حكيم حدثنا أبو داود حدثنا المسعودي أخبرني عمرو بن مرة عن إبراهيم عن علقمة
اضطجع النبي ﷺ على حصير فأثر في جلده فقلت بأبي وأمي يا رسول الله لو كنت آذنتنا ففرشنا لك عليه شيئا يقيك منه فقال رسول الله ﷺ ما أنا والدنيا إنما أنا والدنيا كراكب استظل تحت شجرة ثم راح وتركها
Sourcing, hasan. Reported by Tirmidhi, in the Book of Zuhd, Chapter on the hadith, no. 2377, from the hadith of Masudi through this route, and he said, hasan sahih. It is also found in Musnad Tayalisi, no. 2777, and the hadith has supporting narrations.