Hadithcore
Sunan Abi Dawud, 4821
sahih· Al-Albani

Narrated AbuHurayrah:

AbulQasim (ﷺ) said: When one of you is in the sun (Shams)--Makhlad's version has "fay'"--and the shadow withdraws from him so that he is partly in sun and partly in shade, he should get up.

حَدَّثَنَا ابْنُ السَّرْحِ، وَمَخْلَدُ بْنُ خَالِدٍ، قَالاَ حَدَّثَنَا سُفْيَانُ، عَنْ مُحَمَّدِ بْنِ الْمُنْكَدِرِ، قَالَ حَدَّثَنِي مَنْ، سَمِعَ أَبَا هُرَيْرَةَ، يَقُولُ قَالَ أَبُو الْقَاسِمِ صلى الله عليه وسلم ‏"‏ إِذَا كَانَ أَحَدُكُمْ فِي الشَّمْسِ ‏"‏ ‏.‏ وَقَالَ مَخْلَدٌ ‏"‏ فِي الْفَىْءِ ‏"‏ ‏.‏ ‏"‏ فَقَلَصَ عَنْهُ الظِّلُّ وَصَارَ بَعْضُهُ فِي الشَّمْسِ وَبَعْضُهُ فِي الظِّلِّ فَلْيَقُمْ ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 43, Hadith 49
English Reference
Book 42, Hadith 4803