Whoever is an ally of Allah (swt) and His Messenger (saws) is definitely the one who will prevail. Because this ally is the One Who overcomes and is not defeated. But the important thing is that you have to take the initiative, for the first step is your choice. Allah (swt) says:
يَا أَيُّهَا الَّذِينَ آمَنُوا إِن تَنصُرُوا اللَّهَ يَنصُرْكُمْ وَيُثَبِّتْ أَقْدَامَكُمْ
(O you who have believed, if you support Allah, He will support you and plant firmly your feet.) (Muhammad: 7)
( فَإِنَّ حِزْبَ اللَّهِ هُمُ الْغَالِبُونَ… ) (…– indeed, the party of Allah – they will be the predominant): They are the people who follow the approach of Allah (swt), the believing people will be the predominant, but this is not a rule. In the battle of Uhud, although the Noble Prophet (saws) shared in this battle, the Muslim army did not achieve victory; Because they violated the command of the Messenger (saws), so the meaning of his saying (swt): “if you support Allah, He will support you” is not that the believer will not be exposed to trials and ordeals, rather they always are followed by the victory that Allah (swt) promised the believers. Allah (swt) says:
} وَكَانَ حَقًّا عَلَيْنَا نَصْرُ الْمُؤْمِنِينَ{
(and incumbent upon Us was support of the believers.) (Ar-Room: 47)