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