Qais quoted his father as saying that he (his father) came when the Messenger of Allah ﷺ was addressing. He stood in the sun. He ordered him (to shift) and he shifted to the shade. (Using translation from Abū Dāʾūd 4822)
أَنَّهُ جَاءَ وَرَسُولُ اللهِ ﷺ يَخْطُبُ فَقَامَ فِي الشَّمْسِ فَأَمَرَ بِهِ فَحُوِّلَ إِلَى الظِّلِّ