When those who disbelieved had put into their hearts chauvinism - the chauvinism of the time of ignorance. But Allāh sent down His tranquility upon His Messenger and upon the believers and imposed upon them the word of righteousness, and they were more deserving of it and worthy of it. And ever is Allāh, of all things, Knowing.
Some of the Benefits gained from the Treaty at Al-Hudaybiyyah
Allah the Exalted states that the Arab idolators from Quraysh and their allies who extended help to them against His Messenger ,
هُمُ الَّذِينَ كَفَرُواْ
(They are those who disbelieved), they are indeed the disbelievers,
وَصَدُّوكُمْ عَنِ الْمَسْجِدِ الْحَرَامِ
(and hindered you from Al-Masjid Al-Haram) `even though you are its people and more worthy of being responsible for it,'
وَالْهَدْىَ مَعْكُوفاً أَن يَبْلُغَ مَحِلَّهُ
(and detained the sacrificial animals, from reaching their place of sacrifice.) they prevented, because of transgression and stubbornness, the sacrificial animals from being reached to the place where they would be slaughtered. There were seventy sacrificial camels designated for sacrifice, as we will mention, Allah willing. Allah the Exalted and Most Honored said,
لَّقَدْ صَدَقَ اللَّـهُ رَسُولَهُ الرُّؤْيَا بِالْحَقِّ (and made them stick to the word of piety, and they were very much entitled to it, and competent for it - 48:26) ". The construction kalimat-at-taqwa connotes the word of the pious persons, that is, the Kalimah of Tauhid and Risalah whereby a person declares his faith in Allah's Oneness and in the Messenger-ship of Sayyidna Muhammad ﷺ . It is named here as 'word of piety' because this word is the foundation of piety, righteousness and right conduct. The noble Companions ؓ here are said to have better right to it and more worthy of it, and thus Allah exposed and unmasked those people who accused them of infidelity and hypocrisy. Allah asserts that the noble Companions ؓ are more worthy of the word of Islam and better entitled to it, and thus made them adhere to it firmly, whereas the wretched evil-minded people refuse to acknowledge their value and entitlement.
Tazkirul Quran
Maulana Wahiduddin Khan
From the heart of a man in which the fear of God is firmly embedded, the importance of everything other than God is driven out. He sets God above everything else in life. The occasion of Hudaybiyyah severely tested the companions, but they acquitted themselves well. On this occasion the opposite party had demonstrated brazen obstinacy and communal bias, but the companions simply reposed their trust in God. Their righteousness prevented them from obdurate retaliation and prejudice during this crucial trial period. Till the very end, they did not allow themselves to be provoked.
Uthmani text of the Madinah mushaf (King Fahd Complex). Translation: Saheeh International. Tafsir via Quran.com.