Qatada (rahimahullah) said:
“Whoever has taqwa of Allah (consciousness), then Allah will be with him. And whoever Allah is with, then such a person has with him the Victorious Group that can never be defeated, the Guard Who never falls asleep, and the Guide Who never misleads.”

One of the salaf wrote to another:
If Allah is with you, then who should you fear? And if Allah is against you, then who can you have hope in?”
- Jami’ al-’Ulum wal-Hikam, by Ibn Rajab