The Messenger of Allah ﷺ slept on a straw mat, and when he rose, it had left marks on his side. We said, "Messenger of Allah, what if we prepared a soft bedding for you?"He replied, "What have I to do with this world? I am in this world only like a rider who takes shade beneath a tree, then moves on and leaves it behind."
حدثنا موسى بن عبد الرحمن الكندي حدثنا زيد بن حباب أخبرني المسعودي حدثنا عمرو بن مرة عن إبراهيم عن علقمة
نام رسول الله ﷺ على حصير فقام وقد أثر في جنبه فقلنا يا رسول الله لو اتخذنا لك وطاء فقال ما لي وما للدنيا ما أنا في الدنيا إلا كراكب استظل تحت شجرة ثم راح وتركها
[Hasan]. Ibn Majah also narrated it in the Book of Zuhd, Chapter on the Parable of the World, no. 4109, and Hakim: 4/310, from the hadith of Masudi through this same route. The hadith has supporting narrations.On this subject there is also a narration from Ibn Umar [mentioned previously: 2333] and from Ibn Abbas [Ahmad: 1/301].