Surah An-Nisa, ayah 79

4:79

مَّآ أَصَابَكَ مِنۡ حَسَنَةٖ فَمِنَ ٱللَّهِۖ وَمَآ أَصَابَكَ مِن سَيِّئَةٖ فَمِن نَّفۡسِكَۚ وَأَرۡسَلۡنَٰكَ لِلنَّاسِ رَسُولٗاۚ وَكَفَىٰ بِٱللَّهِ شَهِيدٗا ٧٩

Mmā asābaka min hasanatin faminallāhi wamā asābaka min sayyi'atin famin nafsika wa arsalnāka lin-nāsi rasūlan wakafā billāhi shahīdā

What comes to you of good is from Allāh, but what comes to you of evil, [O man], is from yourself.201 And We have sent you, [O Muḥammad], to the people as a messenger, and sufficient is Allāh as Witness.202

Footnotes

201 As a result of your mistakes or sins.

202 i.e., never absent, always seeing and having complete knowledge of everything within His dominion.