It is God Who prevented the fight in the valley of Mecca [in Hudaibiyah for a divine reason] after He had given the victory [which was considered as a humiliating defeat by most Muslims] and God was observing your behavior [the agony of what you were considering it as a defeat].