{مَّا أَصَابَكَ مِنْ حَسَنَةٍ فَمِنَ اللَّهِ وَمَا أَصَابَكَ مِن سَيِّئَةٍ فَمِن نَّفْسِكَ}
In the Qur’an, God states that anything that strikes you that is good is certainly from God and anything that strikes you which is evil is certainly from within your soul.([1])
Like the Earth which spins around its own axis and around the Sun, parts of the Earth are dark while others are lit up. Any place that is bright is due to the Sun while anywhere where there is darkness is because of the Earth itself (facing away from the sun).
God has created grapes, but human beings make alcoholic beverages out of it which is the cause of thousands of accidents and illnesses.
God has given mankind the power, but some use this power to strike the impoverished.
God has given mind to mankind, but some use the mind with ill intention and use its mischievous and devious powers on others.
So whatever is good is from God and the source of all that is evil stems from within ourselves.
[1] Nisa 4:79