The Messenger of Allah ﷺ said, "When the heat becomes intense, delay the prayer until it cools down, for the intensity of the heat is from the blast of Hell."
حدثنا قتيبة حدثنا الليث عن ابن شهاب عن سعيد بن المسيب وأبي سلمة
قال رسول الله ﷺ إذا اشتد الحر فأبردوا عن الصلاة فإن شدة الحر من فيح جهنم
Agreed upon [by Bukhari and Muslim]. Muslim also recorded it in the Book of Mosques, chapter on the recommendation of delaying Dhuhr in intense heat, etc., hadith no. 615, from Qutayba. Bukhari recorded it in the Book of Prayer Times, chapter on delaying Dhuhr in intense heat, hadith no. 536, in shortened form, from Ibn Shihab Zuhri, through the same chain.On this subject there are also narrations from Abu Saeed Khudri [Bukhari, no. 538], Abu Dharr [Bukhari, no. 535, and Muslim, no. 616, which will come at no. 158], Ibn Umar [Bukhari, nos. 533, 534], Mughira bin Shuba [Ibn Majah, no. 680], Qasim bin Safwan from his father [Ahmad, 2/262], Abu Musa [Nasai, no. 502], Ibn Abbas [Bazzar, cited in Talkhis Habir, 1/181], and Anas [Bukhari, no. 906, and Nasai, no. 500].As for the hadith of Umar, it was recorded by Abu Yaala and Bazzar [Majma al-Zawaid, 1/306].A useful note, the matter of delaying the prayer for coolness relates to travel, as stated in the narration of Tirmidhi and others, and delaying the prayer for coolness has not been established for Madinah. And Allah knows best.