Whatever of good reaches you, is from Allah, but whatever of evil befalls you, is from yourself. [ An-Nisa’ 79]
The Scholars of Tafseer view the words “Good” and “Evil” in the Quran to mean blessings and misfortune. They don’t just refer to the acts a person does by his freewill.
If a good befalls you, it grieves them, but if some evil overtakes you, they rejoice at it. But if you remain patient and become Al-Muttaqun (the pious – see V.2:2), not the least harm will their cunning do to you. Surely, Allah surrounds all that they do. [Al-Imran 120]
If good befalls you (O Muhammad ), it grieves them, but if a calamity overtakes you, they say: “We took our precaution beforehand,” and they turn away rejoicing. [Taubah 50]
The good deeds which we are commanded to do and the bad deeds we are prohibited from doing.