Khalid bin Dinar Abu Khaldah said:
"I heard Anas bin Malik say: 'When it was hot, the Messenger of Allah (ﷺ) would wait until it cooled down to pray, and when it was cold he would hasten to pray.'"
English reference: Vol. 1, Book 6, Hadith 500
Arabic reference: Book 6, Hadith 503