...
وَاَنۡفِقُوۡا فِىۡ سَبِيۡلِ اللّٰهِ وَلَا تُلۡقُوۡا بِاَيۡدِيۡكُمۡ اِلَى التَّهۡلُكَةِ ۖ ۛۚ وَاَحۡسِنُوۡا ۛۚ اِنَّ اللّٰهَ يُحِبُّ الۡمُحۡسِنِيۡنَ١٩٥
And spend in the way of Allāh and do not throw [yourselves] with your [own] hands into destruction [by refraining]. And do good; indeed, Allāh loves the doers of good.
[Al-Quran 2:195, Translation: Saheeh International]
Q2:195 is in the context of special permission granted in the sacred months to fight those who fight you, fearing Allah, containing fitna with equal retaliation (قِصَاصٌؕ), and not exceeding the bounds set by Allah. The muhseneen (الۡمُحۡسِنِيۡنَ) whom Allah loves, endure the hardships and still observe the boundaries and their duties.
...
وَ يَسۡـــَٔلُوۡنَكَ عَنِ الۡمَحِيۡضِۙ قُلۡ هُوَ اَذًى فَاعۡتَزِلُوۡا النِّسَآءَ فِى الۡمَحِيۡضِۙ وَلَا تَقۡرَبُوۡهُنَّ حَتّٰى يَطۡهُرۡنَۚ فَاِذَا تَطَهَّرۡنَ فَاۡتُوۡهُنَّ مِنۡ حَيۡثُ اَمَرَكُمُ اللّٰهُؕ اِنَّ اللّٰهَ يُحِبُّ التَّوَّابِيۡنَ وَيُحِبُّ الۡمُتَطَهِّرِيۡنَ ٢٢٢
And they ask you about menstruation. Say, "It is harm, so keep away from wives during menstruation. And do not approach them until they are pure. And when they have purified themselves, then come to them from where Allāh has ordained for you. Indeed, Allāh loves those who are constantly repentant and loves those who purify themselves."
[Al-Quran 2:222, Translation: Saheeh International]
Q2:222 states that Allah loves the repentant, and Allah loves those who keep purifying themselves. It is perhaps in our most private moments that our true self is revealed. The true believers are truly concerned about their duty, which must take a precedence over desire.
The previous ayat (Q2:221) was the directive to believers to not marry polytheists, even if they are pleasing to the believer, as they invite to the Fire, while Allah invites to Paradise and forgiveness, with His Permission.
...
قُلۡ اِنۡ كُنۡتُمۡ تُحِبُّوۡنَ اللّٰهَ فَاتَّبِعُوۡنِىۡ يُحۡبِبۡكُمُ اللّٰهُ وَيَغۡفِرۡ لَـكُمۡ ذُنُوۡبَكُمۡؕ وَاللّٰهُ غَفُوۡرٌ رَّحِيۡمٌ ٣١
Say, [O Muḥammad], "If you should love Allāh, then follow me, [so] Allāh will love you and forgive you your sins. And Allāh is Forgiving and Merciful."
[Al-Quran 3:31, Translation: Saheeh International]
The proof of one's love for Allah is obedience, following the way shown by Allah's Prophet and Messenger.
The previous ayat (Q3:30) warns of the Day when each and every good and evil a nafs has accumulated in its record will be displayed, while it'll wish that there was a great distance between it and its evil; and Allah warns with His Own Nafs, Allah is Kind to His Servants.
So, the safest way out is to follow the Prophet, as he understood and knew better than other humans.
...
الَّذِيۡنَ يُنۡفِقُوۡنَ فِى السَّرَّآءِ وَالضَّرَّآءِ وَالۡكٰظِمِيۡنَ الۡغَيۡظَ وَالۡعَافِيۡنَ عَنِ النَّاسِؕ وَاللّٰهُ يُحِبُّ الۡمُحۡسِنِيۡنَۚ ١٣٤
Who spend [in the cause of Allāh] during ease and hardship and who restrain anger and who pardon the people - and Allāh loves the doers of good;
[Al-Quran 3:134, Translation: Saheeh International]
Q3:130 forbids from consuming interest, wealth multiplied many times; next ayat: fear The Fire; next ayat: obey Allah and His Messenger so you may be shown mercy; next ayat: hasten to forgiveness and a garden as big as the skies and earth, prepared for the muttaqeen, and then Q3:134 describes these people as those who spend (give to others) whether they are in ease or hardship, and they restrain anger, and they pardon people, and Allah loves the doers of good.
...
وَكَاَيِّنۡ مِّنۡ نَّبِىٍّ قٰتَلَ ۙ مَعَهٗ رِبِّيُّوۡنَ كَثِيۡرٌ ۚ فَمَا وَهَنُوۡا لِمَاۤ اَصَابَهُمۡ فِىۡ سَبِيۡلِ اللّٰهِ وَمَا ضَعُفُوۡا وَمَا اسۡتَكَانُوۡا ؕ وَاللّٰهُ يُحِبُّ الصّٰبِرِيۡنَ ١٤٦ وَمَا كَانَ قَوۡلَهُمۡ اِلَّاۤ اَنۡ قَالُوۡا رَبَّنَا اغۡفِرۡ لَنَا ذُنُوۡبَنَا وَاِسۡرَافَنَا فِىۡۤ اَمۡرِنَا وَ ثَبِّتۡ اَقۡدَامَنَا وَانۡصُرۡنَا عَلَى الۡقَوۡمِ الۡكٰفِرِيۡنَ ١٤٧ فَاٰتٰٮهُمُ اللّٰهُ ثَوَابَ الدُّنۡيَا وَحُسۡنَ ثَوَابِ الۡاٰخِرَةِ ؕ وَاللّٰهُ يُحِبُّ الۡمُحۡسِنِيۡنَ ١٤٨
And how many a prophet [fought in battle and] with him fought many religious scholars. But they never lost assurance due to what afflicted them in the cause of Allāh, nor did they weaken or submit. And Allāh loves the steadfast. And their words were not but that they said, "Our Lord, forgive us our sins and the excess [committed] in our affairs and plant firmly our feet and give us victory over the disbelieving people." So Allah gave them the reward of this world and the excellent reward of the Hereafter. For Allah loves the good-doers.
[Al-Quran 3:146-148, Translation: Saheeh International]
In the context of battles: fighting holy wars, the Prophet of Allah and the 'رِبِّيُّوۡنَ' along side their prophet, for the sake of their Lord 'رِبِّ'. In battles, sometimes one side wins, sometimes the other; to remain steadfast even in the face of losses, and to not lose hope or faith, that is to truly be steadfast for the cause, to believe in what you're doing, and why it must be done. And Allah loves those who are steadfast, who patiently endure and persevere, and continue to do the good work.
...
فَبِمَا رَحۡمَةٍ مِّنَ اللّٰهِ لِنۡتَ لَهُمۡۚ وَلَوۡ كُنۡتَ فَظًّا غَلِيۡظَ الۡقَلۡبِ لَانْفَضُّوۡا مِنۡ حَوۡلِكَ فَاعۡفُ عَنۡهُمۡ وَاسۡتَغۡفِرۡ لَهُمۡ وَشَاوِرۡهُمۡ فِى الۡاَمۡرِۚ فَاِذَا عَزَمۡتَ فَتَوَكَّلۡ عَلَى اللّٰهِؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُتَوَكِّلِيۡنَ ١٥٩ اِنۡ يَّنۡصُرۡكُمُ اللّٰهُ فَلَا غَالِبَ لَـكُمۡۚ وَاِنۡ يَّخۡذُلۡكُمۡ فَمَنۡ ذَا الَّذِىۡ يَنۡصُرُكُمۡ مِّنۡۢ بَعۡدِهٖ ؕ وَعَلَى اللّٰهِ فَلۡيَتَوَكَّلِ الۡمُؤۡمِنُوۡنَ ١٦٠
So by mercy from Allāh, [O Muḥammad], you were lenient with them. And if you had been rude [in speech] and harsh in heart, they would have disbanded from about you. So pardon them and ask forgiveness for them and consult them in the matter. And when you have decided, then rely upon Allāh. Indeed, Allāh loves those who rely [upon Him]. If Allāh should aid you, no one can overcome you; but if He should forsake you, who is there that can aid you after Him? And upon Allāh let the believers rely.
[Al-Quran 3:159-160, Translation: Saheeh International]
Tracing the events that unfolded at Uhud, the weaknesses that were exposed, the losses that were suffered, why Satan was able to overcome some people; and why its better to die or be killed fighting in the cause of Allah, the forgiveness and mercy of Allah being better than worldly accumulations, as it is to Allah that we will all be gathered. Then these ayaat emphasise the need to stay united, and to rely upon Allah. Allah loves those who rely upon Him.
...
۞ وَلَقَدۡ اَخَذَ اللّٰهُ مِيۡثَاقَ بَنِىۡۤ اِسۡرآءِيۡلَۚ وَبَعَثۡنَا مِنۡهُمُ اثۡنَىۡ عَشَرَ نَقِيۡبًا ؕ وَقَالَ اللّٰهُ اِنِّىۡ مَعَكُمۡؕ لَٮِٕنۡ اَقَمۡتُمُ الصَّلٰوةَ وَاٰتَيۡتُمُ الزَّكٰوةَ وَاٰمَنۡتُمۡ بِرُسُلِىۡ وَعَزَّرۡتُمُوۡهُمۡ وَاَقۡرَضۡتُمُ اللّٰهَ قَرۡضًا حَسَنًا لَّاُكَفِّرَنَّ عَنۡكُمۡ سَيِّاٰتِكُمۡ وَلَاُدۡخِلَـنَّكُمۡ جَنّٰتٍ تَجۡرِىۡ مِنۡ تَحۡتِهَا الۡاَنۡهٰرُۚ فَمَنۡ كَفَرَ بَعۡدَ ذٰ لِكَ مِنۡكُمۡ فَقَدۡ ضَلَّ سَوَآءَ السَّبِيۡلِ ١٢ فَبِمَا نَقۡضِهِمۡ مِّيۡثَاقَهُمۡ لَعَنّٰهُمۡ وَجَعَلۡنَا قُلُوۡبَهُمۡ قٰسِيَةً ۚ يُحَرِّفُوۡنَ الۡـكَلِمَ عَنۡ مَّوَاضِعِهٖۙ وَنَسُوۡا حَظًّا مِّمَّا ذُكِّرُوۡا بِهٖۚ وَلَا تَزَالُ تَطَّلِعُ عَلٰى خَآٮِٕنَةٍ مِّنۡهُمۡ اِلَّا قَلِيۡلًا مِّنۡهُمۡ فَاعۡفُ عَنۡهُمۡ وَاصۡفَحۡ ؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُحۡسِنِيۡنَ ١٣
And Allāh had already taken a covenant from the Children of Israel, and We delegated from among them twelve leaders. And Allāh said, "I am with you. If you establish prayer and give zakāh and believe in My messengers and support them and loan Allāh a goodly loan, I will surely remove from you your misdeeds and admit you to gardens beneath which rivers flow. But whoever of you disbelieves after that has certainly strayed from the soundness of the way." So for their breaking of the covenant We cursed them and made their hearts hardened. They distort words from their [proper] places [i.e., usages] and have forgotten a portion of that of which they were reminded. And you will still observe deceit among them, except a few of them. But pardon them and overlook [their misdeeds]. Indeed, Allāh loves the doers of good.
[Al-Quran 5:12-13, Translation: Saheeh International]
...
...
۞ يٰۤـاَيُّهَا الرَّسُوۡلُ لَا يَحۡزُنۡكَ الَّذِيۡنَ يُسَارِعُوۡنَ فِى الۡكُفۡرِ مِنَ الَّذِيۡنَ قَالُوۡۤا اٰمَنَّا بِاَ فۡوَاهِهِمۡ وَلَمۡ تُؤۡمِنۡ قُلُوۡبُهُمۡ ۛۚ وَمِنَ الَّذِيۡنَ هَادُوۡا ۛۚ سَمّٰعُوۡنَ لِلۡكَذِبِ سَمّٰعُوۡنَ لِقَوۡمٍ اٰخَرِيۡنَۙ لَمۡ يَاۡتُوۡكَؕ يُحَرِّفُوۡنَ الۡـكَلِمَ مِنۡۢ بَعۡدِ مَوَاضِعِهٖۚ يَقُوۡلُوۡنَ اِنۡ اُوۡتِيۡتُمۡ هٰذَا فَخُذُوۡهُ وَاِنۡ لَّمۡ تُؤۡتَوۡهُ فَاحۡذَرُوۡا ؕ وَمَنۡ يُّرِدِ اللّٰهُ فِتۡنَـتَهٗ فَلَنۡ تَمۡلِكَ لَهٗ مِنَ اللّٰهِ شَيۡــًٔـاؕ اُولٰٓٮِٕكَ الَّذِيۡنَ لَمۡ يُرِدِ اللّٰهُ اَنۡ يُّطَهِّرَ قُلُوۡبَهُمۡ ؕ لَهُمۡ فِىۡ الدُّنۡيَا خِزۡىٌ ۚۖ وَّلَهُمۡ فِىۡ الۡاٰخِرَةِ عَذَابٌ عَظِيۡمٌ ٤١ سَمّٰعُوۡنَ لِلۡكَذِبِ اَ كّٰلُوۡنَ لِلسُّحۡتِؕ فَاِنۡ جَآءُوۡكَ فَاحۡكُمۡ بَيۡنَهُمۡ اَوۡ اَعۡرِضۡ عَنۡهُمۡ ۚ وَاِنۡ تُعۡرِضۡ عَنۡهُمۡ فَلَنۡ يَّضُرُّوۡكَ شَيۡــًٔـا ؕ وَاِنۡ حَكَمۡتَ فَاحۡكُمۡ بَيۡنَهُمۡ بِالۡقِسۡطِ ؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُقۡسِطِيۡنَ ٤٢
O Messenger, let them not grieve you who hasten into disbelief of those who say, "We believe" with their mouths, but their hearts believe not, and from among the Jews. [They are] avid listeners to falsehood, listening to another people who have not come to you. They distort words beyond their [proper] places [i.e., usages], saying, "If you are given this, take it; but if you are not given it, then beware." But he for whom Allāh intends fitnah - never will you possess [power to do] for him a thing against Allāh. Those are the ones for whom Allāh does not intend to purify their hearts. For them in this world is disgrace, and for them in the Hereafter is a great punishment. [They are] avid listeners to falsehood, devourers of [what is] unlawful. So if they come to you, [O Muḥammad], judge between them or turn away from them. And if you turn away from them - never will they harm you at all. And if you judge, judge between them with justice. Indeed, Allāh loves those who act justly.
[Al-Quran 5:41-42, Translation: Saheeh International]
...
يٰۤـاَيُّهَا الَّذِيۡنَ اٰمَنُوۡا مَنۡ يَّرۡتَدَّ مِنۡكُمۡ عَنۡ دِيۡـنِهٖ فَسَوۡفَ يَاۡتِى اللّٰهُ بِقَوۡمٍ يُّحِبُّهُمۡ وَيُحِبُّوۡنَهٗۤ ۙ اَذِلَّةٍ عَلَى الۡمُؤۡمِنِيۡنَ اَعِزَّةٍ عَلَى الۡكٰفِرِيۡنَ يُجَاهِدُوۡنَ فِىۡ سَبِيۡلِ اللّٰهِ وَلَا يَخَافُوۡنَ لَوۡمَةَ لَاۤٮِٕمٍ ؕ ذٰ لِكَ فَضۡلُ اللّٰهِ يُؤۡتِيۡهِ مَنۡ يَّشَآءُ ؕ وَاللّٰهُ وَاسِعٌ عَلِيۡمٌ ٥٤
O you who have believed, whoever of you should revert from his religion - Allāh will bring forth [in place of them] a people He will love and who will love Him [who are] humble toward the believers, strong against the disbelievers; they strive in the cause of Allāh and do not fear the blame of a critic. That is the favor of Allāh; He bestows it upon whom He wills. And Allāh is all-Encompassing and Knowing.
[Al-Quran 5:54, Translation: Saheeh International]
...
...
يٰۤاَيُّهَا الَّذِيۡنَ اٰمَنُوۡۤا اِنَّمَا الۡخَمۡرُ وَالۡمَيۡسِرُ وَالۡاَنۡصَابُ وَالۡاَزۡلَامُ رِجۡسٌ مِّنۡ عَمَلِ الشَّيۡطٰنِ فَاجۡتَنِبُوۡهُ لَعَلَّكُمۡ تُفۡلِحُوۡنَ ٩٠ اِنَّمَا يُرِيۡدُ الشَّيۡطٰنُ اَنۡ يُّوۡقِعَ بَيۡنَكُمُ الۡعَدَاوَةَ وَالۡبَغۡضَآءَ فِى الۡخَمۡرِ وَالۡمَيۡسِرِ وَيَصُدَّكُمۡ عَنۡ ذِكۡرِ اللّٰهِ وَعَنِ الصَّلٰوةِ ۚ فَهَلۡ اَنۡـتُمۡ مُّنۡتَهُوۡنَ ٩١ وَاَطِيۡعُوا اللّٰهَ وَاَطِيۡعُوا الرَّسُوۡلَ وَاحۡذَرُوۡا ۚ فَاِنۡ تَوَلَّيۡتُمۡ فَاعۡلَمُوۡۤا اَنَّمَا عَلٰى رَسُوۡلِنَا الۡبَلٰغُ الۡمُبِيۡنُ ٩٢ لَـيۡسَ عَلَى الَّذِيۡنَ اٰمَنُوۡا وَعَمِلُوا الصّٰلِحٰتِ جُنَاحٌ فِيۡمَا طَعِمُوۡۤا اِذَا مَا اتَّقَوا وَّاٰمَنُوۡا وَعَمِلُوا الصّٰلِحٰتِ ثُمَّ اتَّقَوا وَّاٰمَنُوۡا ثُمَّ اتَّقَوا وَّاَحۡسَنُوۡا ؕ وَاللّٰهُ يُحِبُّ الۡمُحۡسِنِيۡنَ ٩٣
O you who have believed, indeed, intoxicants, gambling, [sacrificing on] stone alters [to other than Allāh], and divining arrows are but defilement from the work of Satan, so avoid1 it that you may be successful. Satan only wants to cause between you animosity and hatred through intoxicants and gambling and to avert you from the remembrance of Allāh and from prayer. So will you not desist? And obey Allāh and obey the Messenger and beware. And if you turn away - then know that upon Our Messenger is only [the responsibility for] clear notification. There is not upon those who believe and do righteousness [any] blame concerning what they have eaten [in the past] if they [now] fear Allāh and believe and do righteous deeds, and then fear Allāh and believe, and then fear Allāh and do good; and Allāh loves the doers of good.
[Al-Quran 5:90-93, Translation: Saheeh International]
...
بَرَآءَةٌ مِّنَ اللّٰهِ وَرَسُوۡلِهٖۤ اِلَى الَّذِيۡنَ عَاهَدتُّمۡ مِّنَ الۡمُشۡرِكِيۡنَ ؕ ١ فَسِيۡحُوۡا فِى الۡاَرۡضِ اَرۡبَعَةَ اَشۡهُرٍ وَّاعۡلَمُوۡۤا اَنَّكُمۡ غَيۡرُ مُعۡجِزِى اللّٰهِۙ وَاَنَّ اللّٰهَ مُخۡزِى الۡكٰفِرِيۡنَ ٢ وَاَذَانٌ مِّنَ اللّٰهِ وَرَسُوۡلِهٖۤ اِلَى النَّاسِ يَوۡمَ الۡحَجِّ الۡاَكۡبَرِ اَنَّ اللّٰهَ بَرِىۡۤءٌ مِّنَ الۡمُشۡرِكِيۡنَ وَ رَسُوۡلُهٗ ؕ فَاِنۡ تُبۡتُمۡ فَهُوَ خَيۡرٌ لَّـكُمۡ ۚ وَاِنۡ تَوَلَّيۡتُمۡ فَاعۡلَمُوۡۤا اَنَّكُمۡ غَيۡرُ مُعۡجِزِى اللّٰهِ ؕ وَبَشِّرِ الَّذِيۡنَ كَفَرُوۡا بِعَذَابٍ اَ لِيۡمٍۙ ٣ اِلَّا الَّذِيۡنَ عَاهَدتُّمۡ مِّنَ الۡمُشۡرِكِيۡنَ ثُمَّ لَمۡ يَنۡقُصُوۡكُمۡ شَيۡـًٔـا وَّلَمۡ يُظَاهِرُوۡا عَلَيۡكُمۡ اَحَدًا فَاَتِمُّوۡۤا اِلَيۡهِمۡ عَهۡدَهُمۡ اِلٰى مُدَّتِهِمۡؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُتَّقِيۡنَ ٤
[This is a declaration of] disassociation, from Allāh and His Messenger, to those with whom you had made a treaty among the polytheists. So travel freely, [O disbelievers], throughout the land [during] four months but know that you cannot cause failure to Allāh and that Allāh will disgrace the disbelievers. And [it is] an announcement from Allāh and His Messenger to the people on the day of the greater pilgrimage that Allāh is disassociated from the disbelievers, and [so is] His Messenger. So if you repent, that is best for you; but if you turn away - then know that you will not cause failure to Allāh. And give tidings to those who disbelieve of a painful punishment. Excepted are those with whom you made a treaty among the polytheists and then they have not been deficient toward you in anything or supported anyone against you; so complete for them their treaty until their term [has ended]. Indeed, Allāh loves the righteous [who fear Him].
[Al-Quran 9:1-4, Translation: Saheeh International]
After two decades of inviting to the Deen of Allah, finally the State of Mecca is given notice of war by Allah and His Messenger Muhammad ﷺ . Even then, those who kept their word in their treaties, those treaties must be honoured.
...
...
كَيۡفَ يَكُوۡنُ لِلۡمُشۡرِكِيۡنَ عَهۡدٌ عِنۡدَ اللّٰهِ وَعِنۡدَ رَسُوۡلِهٖۤ اِلَّا الَّذِيۡنَ عَاهَدتُّمۡ عِنۡدَ الۡمَسۡجِدِ الۡحَـرَامِ ۚ فَمَا اسۡتَقَامُوۡا لَـكُمۡ فَاسۡتَقِيۡمُوۡا لَهُمۡ ؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُتَّقِيۡنَ ٧
How can there be for the polytheists a treaty in the sight of Allāh and with His Messenger, except for those with whom you made a treaty at al-Masjid al-Ḥarām? So as long as they are upright toward you, be upright toward them. Indeed, Allāh loves the righteous [who fear Him].
[Al-Quran 9:7, Translation: Saheeh International]
...
...
لَا تَقُمۡ فِيۡهِ اَبَدًا ؕ لَمَسۡجِدٌ اُسِّسَ عَلَى التَّقۡوٰى مِنۡ اَوَّلِ يَوۡمٍ اَحَقُّ اَنۡ تَقُوۡمَ فِيۡهِؕ فِيۡهِ رِجَالٌ يُّحِبُّوۡنَ اَنۡ يَّتَطَهَّرُوۡا ؕ وَاللّٰهُ يُحِبُّ الۡمُطَّهِّرِيۡنَ ١٠٨
Do not stand [for prayer] within it - ever. A mosque founded on righteousness from the first day is more worthy for you to stand in. Within it are men who love to purify themselves; and Allāh loves those who purify themselves.
[Al-Quran 9:108, Translation: Saheeh International]
...
...
وَاِنۡ طَآٮِٕفَتٰنِ مِنَ الۡمُؤۡمِنِيۡنَ اقۡتَتَلُوۡا فَاَصۡلِحُوۡا بَيۡنَهُمَاۚ فَاِنۡۢ بَغَتۡ اِحۡدٰٮهُمَا عَلَى الۡاُخۡرٰى فَقَاتِلُوا الَّتِىۡ تَبۡغِىۡ حَتّٰى تَفِىۡٓءَ اِلٰٓى اَمۡرِ اللّٰهِ ۚ فَاِنۡ فَآءَتۡ فَاَصۡلِحُوۡا بَيۡنَهُمَا بِالۡعَدۡلِ وَاَقۡسِطُوۡا ؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُقۡسِطِيۡنَ ٩ اِنَّمَا الۡمُؤۡمِنُوۡنَ اِخۡوَةٌ فَاَصۡلِحُوۡا بَيۡنَ اَخَوَيۡكُمۡوَ اتَّقُوا اللّٰهَ لَعَلَّكُمۡ تُرۡحَمُوۡنَ ١٠
And if two factions among the believers should fight, then make settlement between the two. But if one of them oppresses the other, then fight against the one that oppresses until it returns to the ordinance of Allāh. And if it returns, then make settlement between them in justice and act justly. Indeed, Allāh loves those who act justly. The believers are but brothers, so make settlement between your brothers. And fear Allāh that you may receive mercy.
[Al-Quran 49:9, Translation: Saheeh International]
...
...
لَقَدۡ كَانَ لَـكُمۡ فِيۡهِمۡ اُسۡوَةٌ حَسَنَةٌ لِّمَنۡ كَانَ يَرۡجُوا اللّٰهَ وَالۡيَوۡمَ الۡاٰخِرَ ؕ وَمَنۡ يَّتَوَلَّ فَاِنَّ اللّٰهَ هُوَ الۡغَنِىُّ الۡحَمِيۡدُ ٦ ۞ عَسَى اللّٰهُ اَنۡ يَّجۡعَلَ بَيۡنَكُمۡ وَبَيۡنَ الَّذِيۡنَ عَادَيۡتُمۡ مِّنۡهُمۡ مَّوَدَّةً ؕ وَاللّٰهُ قَدِيۡرٌؕ وَاللّٰهُ غَفُوۡرٌ رَّحِيۡمٌ ٧ لَا يَنۡهٰٮكُمُ اللّٰهُ عَنِ الَّذِيۡنَ لَمۡ يُقَاتِلُوۡكُمۡ فِى الدِّيۡنِ وَلَمۡ يُخۡرِجُوۡكُمۡ مِّنۡ دِيَارِكُمۡ اَنۡ تَبَرُّوۡهُمۡ وَ تُقۡسِطُوۡۤا اِلَيۡهِمۡؕ اِنَّ اللّٰهَ يُحِبُّ الۡمُقۡسِطِيۡنَ ٨ اِنَّمَا يَنۡهٰٮكُمُ اللّٰهُ عَنِ الَّذِيۡنَ قَاتَلُوۡكُمۡ فِى الدِّيۡنِ وَاَخۡرَجُوۡكُمۡ مِّنۡ دِيَارِكُمۡ وَظَاهَرُوۡا عَلٰٓى اِخۡرَاجِكُمۡ اَنۡ تَوَلَّوۡهُمۡۚ وَمَنۡ يَّتَوَلَّهُمۡ فَاُولٰٓٮِٕكَ هُمُ الظّٰلِمُوۡنَ ٩
There has certainly been for you in them an excellent pattern for anyone whose hope is in Allāh and the Last Day. And whoever turns away - then indeed, Allāh is the Free of need, the Praiseworthy. Perhaps Allāh will put, between you and those to whom you have been enemies among them, affection. And Allāh is competent, and Allāh is Forgiving and Merciful. Allāh does not forbid you from those who do not fight you because of religion and do not expel you from your homes - from being righteous toward them and acting justly toward them. Indeed, Allāh loves those who act justly. Allāh only forbids you from those who fight you because of religion and expel you from your homes and aid in your expulsion - [forbids] that you make allies of them. And whoever makes allies of them, then it is those who are the wrongdoers.
[Al-Quran 60:6-9, Translation: Saheeh International]
In the example of Abraham (Ibrahim عليه السلام) is an excellent pattern of conduct.
...
سَبَّحَ لِلّٰهِ مَا فِى السَّمٰوٰتِ وَمَا فِى الۡاَرۡضِۚ وَهُوَ الۡعَزِيۡزُ الۡحَكِيۡمُ ١ يٰۤاَيُّهَا الَّذِيۡنَ اٰمَنُوۡا لِمَ تَقُوۡلُوۡنَ مَا لَا تَفۡعَلُوۡنَ ٢ كَبُرَ مَقۡتًا عِنۡدَ اللّٰهِ اَنۡ تَقُوۡلُوۡا مَا لَا تَفۡعَلُوۡنَ ٣ اِنَّ اللّٰهَ يُحِبُّ الَّذِيۡنَ يُقَاتِلُوۡنَ فِىۡ سَبِيۡلِهٖ صَفًّا كَاَنَّهُمۡ بُنۡيَانٌ مَّرۡصُوۡصٌ ٤
Whatever is in the heavens and whatever is on the earth exalts Allāh, and He is the Exalted in Might, the Wise. O you who have believed, why do you say what you do not do? Greatly hateful in the sight of Allāh is that you say what you do not do. Indeed, Allāh loves those who fight in His cause in a row as though they are a [single] structure joined firmly.
[Al-Quran 61:1-4, Translation: Saheeh International]
...
...
...
...
[Al-Quran 1:1, Translation: Saheeh International]
...
Quran search triliteral root ḥā bā bā (ح ب ب) : https://corpus.quran.com/qurandictionary.jsp?q=Hbb
...