Commentary
The previous verses contain an account of how the infidels of Makkah prevented the Holy Prophet ﷺ and his companions from entering the Haram and the Holy Mosque to perform ` Umrah when, having put on ihram, they had reached as far as Hudaibiyah, a place not far from Makkah. In this verse Allah Ta’ ala consoled the Muslims with the promise that He would deprive the infidels of their power to harm them anymore.
This incident took place in the year 6 A.H. and thereafter the power and the morale of the infidels suffered continuous decline until in the year 8 A.H. the Muslims conquered Makkah. The following verses describe this event in detail.
Here Allah tells us that He defends His servants who put their trust in Him and turn to Him in repentance; He protects them from the the worst of evil people and the plots of the sinners; He protects them, guards them and supports them, as He tells us elsewhere:
(Is not Allah sufficient for His servant) 39:36
(And whosoever puts his trust in Allah, then He will suffice him. Verily, Allah will accomplish his purpose. Indeed Allah has set a measure for all things) 65:3.
(Verily, Allah likes not any treacherous ingrate) means, He does not like any of His servants who bear these characteristics, i.e., treachery in covenants and promises whereby a person does not do what he says, and ingratitude is to deny the blessings, whereby one does not acknowledge or appreciate them.