Hadithcore
Musnad Ahmad 4208
sahih

It was narrated from 'Abdullah that

The Prophet (ﷺ) said: "What do I have to do with this world? Rather the likeness of me and this world is that of a rider who slept in the shade of a tree on a hot summer day, then he moved on and left it behind."

References1 variant
Arabic/English book
Book 26, Hadith 4208