"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.'" (Using translation from Nasāʾī 499)
كَانَ رَسُولُ اللهِ ﷺ «إِذَا كَانَ الْحَرُّ أَبْرَدَ بِالصَّلَاةِ وَإِذَا كَانَ الْبَرْدُ عَجَّلَ»