(Yoonus) 10 : 107
وَإِنْ يَمْسَسْكَ اللَّهُ بِضُرٍّ فَلَا كَاشِفَ لَهُ إِلَّا هُوَ ۖ وَإِنْ يُرِدْكَ بِخَيْرٍ فَلَا رَادَّ لِفَضْلِهِ ۚ يُصِيبُ بِهِ مَنْ يَشَاءُ مِنْ عِبَادِهِ ۚ وَهُوَ الْغَفُورُ الرَّحِيمُ

And if Lord Allah should touch you with adversity, then there is no remover of it except He; and if He intends good for you, then there is no repeller of His Bounty. He causes It to reach whom He wishes among His servants, and He is the Forgiving, the Merciful.

Anyone holdfasts Adhikr—the Best and the Bounty; he did holdfast Lord and is guided into the Straightpath as explained in verses 3: 101 and 5: 48. Any good happening to one is from Lord Allah, while any bad happening to one is from himself as explained in verses 4: 78-79. See the explanations 2: 269; 4: 115 and 10: 57-58.