Defending against attacks.
While all battles of the Prophet Muhammad (PBUH) had a defensive quality in terms of their reasons and main purposes, the number of defensive battles in terms of strategy is few in number. Some battles of the Prophet Muhammad (PBUH) occurred as a result of the attacks of the enemy in order to harm Muslim’s existence and their territorial integrity. In such situations, the Prophet Muhammad (PBUH) used his right of legitimate self defense. Since permission is given by the Qur’an for battling in order to defend when there is an attack and it is emphasized that battles should be fought based on legitimate reasons
Helping Muslims that are persecuted.
Some of the wars were fought in order to end the pressure on the freedom of religion and belief applied by the tribes and states that oppressed and tortured Muslims. The tribes and states that were full of the feeling of enmity against Muslims displayed their enmity whenever they had an opportunity. This enmity was shown in the form of oppressing and torturing the Muslims who lived in other states as a minority.
Answering the declaration of war by the enemy
Declaration of war by the enemy is one of the reasons of fighting by the Prophet (pbuh). Not to answer a tribe or state that wages war against you will encourage the enemy and make them attack you more strongly and bravely; therefore, it is necessary to answer the declaration of war by the enemy. In that case, to answer the declaration of war is regarded as self defense because the enemy shows that they are determined when they declare war. When the Prophet (pbuh) was faced with this determination and the risk of being attacked, he answered the declaration of war.
. Accordingly, all wars are based on legitimate reasons; therefore, it can be concluded that no battle, war or intervention of the Prophet (pbuh) is unjust. When all of the causes and reasons are taken into consideration, it is clearly seen that the Prophet (pbuh) did not attack any tribe or state unjustly.
When the principles of Islam, which are based on the Quran and the Sunnah, are taken into consideration, it is seen that the relationships among individuals and states are based on the principle of peace. War is an unwanted obligation that is temporary; it can take place as a struggle of existence.
To express it in a way that is related to today, it will be seen that the reasons and causes of the Prophet's (pbuh) wars are legitimate when they are examined under the criteria that are used to determine the legitimacy of war in the past and today.
من يتهم النبي محمد ﷺ بانه قاتل فهو أكبر كذاب في التأريخ ...
https://questionsonislam.com/article/wha...buh-fought
The Qur'an is more than clear on this subject. God created us to be worshiped. In Islam therefore love is the very reason for the creation of the world. More than that, creation therefore presents itself as a divine order totally moved by Love where God is omnipresent in an eternal and immediate actuality: "and he is with you wherever you are ...".
We all know that to worship means to love there is no doubt about it, Adoration is also Love in the extreme. Only this adoration integrates with the friendship of God all that relates to his Lordship. This is what generally hinders the understanding of the uninitiated who only want to love thinking that by adding a prostration for example it would degrade him in love and reduce him to a simple slave. Whenever we quote the adoration of the divine Lord it is Love in its absolute by specifying in our acts and thoughts the quality of Lord to be loved ... It is nothing else than Love in all its fullness but which suits its Lordship ..