We used to pray the Friday prayer with the Messenger of Allah ﷺ and then depart, with the walls casting no shadow yet.
حدثنا أحمد بن يونس حدثنا يعلى بن الحارث سمعت
كنا نصلي مع رسول الله ﷺ الجمعة ثم ننصرف وليس للحيطان فيء
Reported by Muslim, Jumuah, "Chapter on the Friday Prayer When the Sun Passes Its Zenith," no. 860, from the hadith of Yaala bin Harith, and Bukhari, Maghazi, "Chapter on the Battle of Hudaybiya," no. 4168, from the hadith of Iyas bin Salama.