Reference : Hisn al-Muslim 168

سُبْـحانَ الّذي يُسَبِّـحُ الـرَّعْدُ بِحَمْـدِهِ،
وَالملائِكـةُ مِنْ خيـفَته
Subḥāna ‘l-ladhī yusabbiḥur-ra`du bi ḥamdihi 
wa ‘l-malā'ikatu min khīfatih.


Glory is to Him Whom thunder and angels glorify due to fear of Him.

Reference:
Whenever Abdullah bin Zubair (RA) would hear thunder, he would abandon all 
conversation and say this supplication. See Al-Muwatta' 2/992. It was 
graded authentic by Al-Albani as a statement of Abdullah bin Zubayr only.

Chapter: Upon hearing thunder