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. (Using translation from Abū Dāʾūd 4821)
"إذَا كانَ أحدُكُمْ في الشَّمْسِ فقَلَصَ عنْه الظِّلُّ، وصارَ بَعْضُهُ في الظِّلِ وبَعْضُه في الشَّمس فليقُم".