Narrated Abu Hurairah: Abul Qasim ﷺ 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.
Hadith ReferenceSunan Abi Dawud / General Behavior (Kitab Al-Adab) / Hadith: 4821
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:حسن, مشكوة المصابيح (4725), وللحديث شاھد عند ابن ماجه (3722 وسنده حسن)
Hadith Takhrij« تفرد بہ أبوداود، (تحفة الأشراف: 15504)، وقد أخرجہ: مسند احمد (2/383) (صحیح) »