Hadithcore
Mishkat al-Masabih, 2011

One of the Prophet’s companions said he had seen the Prophet (ﷺ) in al-'Arj* pouring water over his head while he was fasting; either because of thirst or because of the heat. *A <i>wadi</i> in the neighbourhood of at-Ta’if. Malik and Abu Dawud transmitted it.

وَعَنْ بَعْضِ أَصْحَابِ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: لَقَدْ رَأَيْتُ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِالْعَرْجِ يَصُبُّ عَلَى رَأْسِهِ الْمَاءَ وَهُوَ صَائِمٌ مِنَ الْعَطَشِ أَوْ مِنَ الْحَرِّ. رَوَاهُ مَالك

References1 variant
In-Book Reference
Book 7, Hadith 55