And with Allah's permission, they routed them. Dawud killed Goliath, and Allah gave him kingship and wisdom and taught him whatever He willed. If it were not for Allah's driving some people back by means of others, Earth would have been corrupted. But Allah shows favor to all the worlds. ( Surat al-Baqara, 2:251)
Allah, Who protects believers against all material and spiritual dangers, also grants them irrefutable power against all unbelievers, hypocrites, and idolaters. While unbelievers plan and plot, Allah moves against them. Driving their harm away, He makes the plotters suffer the consequences of their own plots.
Meanwhile, Allah divides unbelievers, makes them fight each another, and thereby causes them to lose their strength. Furthermore, He keeps those who hate Muslims apart from them and afflicts them with many disasters. The Qur'an relates this divine protection for believers, as follows:
Those who were expelled from their homes without any right, merely for saying: “Our Lord is Allah.” If Allah had not driven some people back by means of others, monasteries, churches, synagogues, and mosques, where Allah's name is mentioned much, would have been pulled down and destroyed. Allah will certainly help those who help Him… ( Surat al-Hajj, 22:40)
This aside, only Allah can repel all varieties of difficulty, disease, misgiving, Satan's promptings to evil, and many other disasters from believers. No doubt, each one of these represents Allah's overt and hidden help to humanity. He is very compassionate toward His servants, to those who take refuge in Him and seek His help and forgiveness.