(Imām Bukhārī narrates): Muhammad bin Abi Bakr Al-Muqaddami narrated to us, he said: Harami bin Umarah narrated to us, he said: Abu Khaldah narrated to us, he is Khalid bin Dinar, he said: I heard Hazrat Anas bin Malik, may Allāh be pleased with him, saying that
when there was intense cold, the Prophet ﷺ would offer the prayer early, and when there was intense heat, he would offer the prayer by cooling it down, that is, Jumu'ah.
Yunus bin Bukair said: Abu Khaldah informed us: he said the word "prayer" and did not mention Jumu'ah. And Bishr bin Thabit said: Abu Khaldah narrated to us, he said: The Amir of Jumu'ah led us in prayer, then he said to Hazrat Anas, may Allāh be pleased with him: How did the Prophet ﷺ offer the Zuhr prayer?
Reference: Sahih Al Bukhari 906