For My angel will go before you and bring you to the Amorites, the Hittites, the Perizites, the Canaanites, the Hivities, and the Jebusites, and I will annihilate them.
Exodus 23:23
In this passage, G-d is informing the people that they would eventually sin and thus forfeit the privilege of being led into the Land of Israel by His presence directly, instead being led by an emissary. Nonetheless, G-d assures them that this emissary will succeed in driving out the nations occupying Canaan in order to facilitate the Jewish people’s settlement in it.
We see here that even when G-d deems it necessary to discipline His people, He never ceases to both love us and manifest that love toward us.
Similarly, whenever circumstances require us to administer disciplinary measures, we should do so out of genuine love and concern, making sure, at the same time, to manifest that love to those whom we are disciplining.
--Daily Wisdom Vol. 3