Al-Ilmam bi-Ahadith al-Ahkam 422
وَعَن أنس رَضِيَ اللَّهُ عَنْه قَالَ: " أَصَابَنَا وَنحن مَعَ رَسُول الله ﷺ مطر، قَالَ: فحسر رَسُول الله ﷺ ثَوْبه حَتَّى أَصَابَهُ من الْمَطَر ﷺ فَقُلْنَا: يَا رَسُول الله لم صنعت هَذَا؟) قَالَ: " لِأَنَّهُ حَدِيث عهد بربه عَزَّ وَجَلَّ ". أخرجه مُسلم.
And from Anas, may Allah be pleased with him, who said: "Rain fell on us while we were with the Messenger of Allah ﷺ. The Messenger of Allah ﷺ uncovered his garment until some of the rain fell on him. We said: 'O Messenger of Allah, why did you do this?' He said: 'Because it has just come from its Lord, Mighty and Majestic.'" Muslim recorded it.