The Messenger of Allah ﷺ said, "When the heat becomes intense, wait for it to cool before praying, for the fierceness of the heat comes from the blazing of Hell." He also mentioned that the Fire complained to its Lord, so He permitted it two breaths each year, one breath in winter and one breath in summer.
و حدثنا مالك عن عبد الله بن يزيد مولى الأسود بن سفيان عن أبي سلمة بن عبد الرحمن وعن محمد بن عبد الرحمن بن ثوبان
أن رسول الله ﷺ قال إذا اشتد الحر فأبردوا عن الصلاة فإن شدة الحر من فيح جهنم وذكر أن النار اشتكت إلى ربها فأذن لها في كل عام بنفسين نفس في الشتاء ونفس في الصيف