Surah Nisa 79
Please read the ayah 4:79 in the context of previous 2 ayahs (4:77-78). This passage is not addressing all hardships and/or evil that befalls humans – it’s simply responding to the attitude of some hypocrites when they were blaming hardships on prophet Muhammad and his followers.
Please refer to the following video-link for details on these specific verses: Discussion 22218 • Reply 22226