Hadithcore
Al-Adab Al-Mufrad, 686
sahih· Al-Albani

'A'isha said, "When the Messenger of Allah, (ﷺ), saw a cloud rising from the horizon, he would leave what he was doing, even if it was the prayer, and face towards it. If Allah dispersed it, he praised Allah, and if it rained, he said, 'O Allah, make it a useful fall!'"

حَدَّثَنَا خَلاَّدُ بْنُ يَحْيَى، قَالَ‏:‏ حَدَّثَنَا سُفْيَانُ، عَنِ الْمِقْدَامِ بْنِ شُرَيْحِ بْنِ هَانِئٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ‏:‏ كَانَ رَسُولُ اللهِ صلى الله عليه وسلم إِذَا رَأَى نَاشِئًا فِي أُفُقٍ مِنْ آفَاقِ السَّمَاءِ، تَرَكَ عَمَلَهُ، وَإِنْ كَانَ فِي صَلاَةٍ، ثُمَّ أَقْبَلَ عَلَيْهِ، فَإِنْ كَشَفَهُ اللَّهُ حَمِدَ اللَّهَ، وَإِنْ مَطَرَتْ قَالَ‏:‏ اللَّهُمَّ صَيِّبًا نَافِعًا‏.‏

References2 variants
In-Book Reference
Book 31, Hadith 83
English Reference
Book 31, Hadith 686