Sahih Muslim, Book 5, Hadith 239 (Muslim 1392)

Khabbab reported:

We complained to the Messenger of Allah (ﷺ) (the difficulty of) saying prayer on the intensely heated (ground or sand), but he paid no heed to our complaint.