Surah Al-Kahf

18:44

هُنَالِكَ ٱلْوَلَٰيَةُ لِلَّهِ ٱلْحَقِّ ۚ هُوَ خَيْرٌۭ ثَوَابًۭا وَخَيْرٌ عُقْبًۭا

There the authority is [completely] for Allah, the Truth. He is best in reward and best in outcome.

Tafsir 18:44

In that situation, victory is for Allah alone. He, may He be glorified, is best in rewarding His friends who have faith, as He multiplies the reward for them, and He is best in outcome for them.