I used to pray Zuhr with the Messenger of Allah ﷺ, and I would take a handful of pebbles in my palm so they would cool down, then prostrate on them, because of the intense heat.
حدثنا خلف بن الوليد حدثنا عباد بن عباد عن محمد بن عمرو عن سعيد بن الحارث الأنصاري
كنت أصلي مع رسول الله ﷺ الظهر فآخذ قبضة من حصى في كفي لتبرد حتى أسجد عليه من شدة الحر