It is narrated from Abu Huraira (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) 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."
Hadith Referenceمسند الإمام الشافعي / كتاب الصلاة / 136
Hadith Takhrijاخرجه البخاري: مواقيت الصلاة، باب الابراد بالظهر في شدة الحر (536) ومسلم، المساجد، باب استحباب الابراد بالظهر في شدة الحر لمن يمضى الى جماعة (615) .