'A'isha said, "When the Messenger of Allah, may Allah bless him and grant him peace, 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!'"
Source: sunnah.com
Other translations
Arabic
حَدَّثَنَا خَلاَّدُ بْنُ يَحْيَى، قَالَ: حَدَّثَنَا سُفْيَانُ، عَنِ الْمِقْدَامِ بْنِ شُرَيْحِ بْنِ هَانِئٍ، عَنْ أَبِيهِ، عَنْ عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ: كَانَ رَسُولُ اللهِ صلى الله عليه وسلم إِذَا رَأَى نَاشِئًا فِي أُفُقٍ مِنْ آفَاقِ السَّمَاءِ، تَرَكَ عَمَلَهُ، وَإِنْ كَانَ فِي صَلاَةٍ، ثُمَّ أَقْبَلَ عَلَيْهِ، فَإِنْ كَشَفَهُ اللَّهُ حَمِدَ اللَّهَ، وَإِنْ مَطَرَتْ قَالَ: اللَّهُمَّ صَيِّبًا نَافِعًا.
sunnah.com