Qays bin Abi Hazim (may Allah have mercy on him) says that my father (may Allah be pleased with him) came and stood in the sun while the Prophet (peace and blessings be upon him) was delivering the sermon. He (peace and blessings be upon him) gave an order, and he was moved into the shade.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجمعة / 5820