BAYHAQI 6470:
from Sālim b. ʿAbdullāh from his father —
from his father, that when the Messenger of Allah ﷺ would hear the sound of thunder and lightning bolts, he would say: “O Allah, do not kill us with Your wrath, and do not destroy us with Your punishment, and pardon us before that (Allāhumma lā taqtulnā bi-ghaḍabika wa lā tuhliknā bi-ʿadhābika wa ʿāfinā qabla dhālik).” (Using translation from Tirmidhī 3450)
البيهقي ٦٤٧٠:
عن سالم بن عبد الله عن أبيه —
كَانَ رَسُولُ اللهِ ﷺ إِذَا سَمِعَ الرَّعْدَ وَالصَّوَاعِقَ قَالَ اللهُمَّ لَا تَقْتُلْنَا بِغَضَبِكَ وَلَا تُهْلِكْنَا بِعَذَابِكَ وَعَافِنَا قَبْلَ ذَلِكَ
hadithunlocked.com