It is narrated from Abu Huraira (may Allah be pleased with him) that he reports the Messenger of Allah (ﷺ) said: "When the heat becomes intense, perform the prayer at a cooler time, for the severity of the heat is due to the boiling of the Hellfire." And he said: "The Hellfire complained to its Lord... (details)."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 133
Hadith Takhrijاخرجه البخاري: مواقيت الصلوة، باب الابرد بالظهر في شدة الحر: 536 ، 537 .