عَنْ عَبْدِ اللَّهِ بْنِ زَيْدٍ قَالَ: خَرَجَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ بِالنَّاسِ إِلَى الْمُصَلَّى يَسْتَسْقِي فَصَلَّى بِهِمْ رَكْعَتَيْنِ جَهَرَ فِيهِمَا بِالْقِرَاءَةِ وَاسْتَقْبَلَ الْقِبْلَةَ يَدْعُو وَرَفَعَ يَدَيْهِ وَحَوَّلَ رِدَاءَهُ حِينَ اسْتَقْبَلَ الْقِبْلَةَ
Translation
Anas said

A shower of rain fell when we were with God’s Messenger, so he removed his garment till some of the rain fell on him. We asked him why he did this, and he replied, “Because it has recently been with its Lord." Muslim transmitted it.