Al-Adab Al-Mufrad, Book 47, Hadith 1162 (In-Book) ⓘ
Abu Khulda reported that he heard Anas ibn Malik when he was with al-Hakam, the amir of Basra, on a seat. He said, "When the Prophet, may Allah bless him and grant him peace, was hot, he delayed the prayer until a cooler time of the day. When it was cold, he made the prayer early."
حَدَّثَنَا عُبَيْدٌ، قَالَ: حَدَّثَنَا يُونُسُ بْنُ بُكَيْرٍ، قَالَ: حَدَّثَنَا خَالِدُ بْنُ دِينَارٍ أَبُو خَلْدَةَ قَالَ: سَمِعْتُ أَنَسَ بْنَ مَالِكٍ، وَهُوَ مَعَ الْحَكَمِ أَمِيرٌ بِالْبَصْرَةِ عَلَى السَّرِيرِ، يَقُولُ: كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا كَانَ الْحَرُّ أَبْرَدَ بِالصَّلاَةِ، وَإِذَا كَانَ الْبَرْدُ بَكَّرَ بِالصَّلاةِ.
also referenced under: Hadith 1162 (Reference) & Book 47, Hadith 1162 (English)