Salamah's version has: It is Allah's mercy; it (sometimes) brings blessing and (sometimes) brings punishment. So when you see it, do not revile it, but ask Allah for some of its good, and seek refuge in Allah from its evil.
In-book : Book 43, Hadith 325
English translation : Book 42, Hadith 5078