Hadith 4822
Chapter 15: Regarding sitting party in the sun and party in the shade - كتاب الأدب
حَدَّثَنَا مُسَدَّدٌ، حَدَّثَنَا يَحْيَى، عَنْ إِسْمَاعِيلَ، قَالَ حَدَّثَنِي قَيْسٌ، عَنْ أَبِيهِ، أَنَّهُ جَاءَ وَرَسُولُ اللَّهِ صلى الله عليه وسلم يَخْطُبُ فَقَامَ فِي الشَّمْسِ فَأَمَرَ بِهِ فَحُوِّلَ إِلَى الظِّلِّ .
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.
Reference : Sunan Abi Dawud 4822
In-book reference : Book 43, Hadith 50