We used to pray the Friday prayer with the Prophet ﷺ, then we would leave, and the walls had no shade in which one could take shelter.
كنا نصلي مع النبي ﷺ الجمعة ثم ننصرف وليس للحيطان ظل يستظل فيه.
Bukhari narrated it in the Book of Military Expeditions (4168) and Muslim in the Book of Friday Prayer (32/860), both through the route of Yaala bin Harith Muharibi, from Iyas bin Salama bin Akwa, from his father, who related the hadith. In a version reported by Muslim, the wording is, "We used to pray Jumuah with the Messenger of Allah ﷺ when the sun had passed its zenith, then we would go back seeking out the shade."