//•"(If any good reaches them, they say, “This is from Allah,” but if any evil befalls them, they say, “This happened because of you.” Say: “All things are from Allah.” What is wrong with these people that they do not understand any word?) [An-Nisa' 78]
No calamity occurs on earth nor in yourselves but it is inscribed in the Book of Decrees before We bring it into existence. Verily, that is easy for Allah.
In order that you may not grieve at the things over that you fail to get, nor rejoice over that which has been given to you. And Allah likes not prideful boasters.
Quran (Surah Hadid, Verses 22,23)