Consequently, the joy is treated: and if it happen that he find it, etc. Here also a threefold reason can be assigned. That the Lord rejoices over good things is stated in Zeph 3:17: your God will rejoice over you with gladness. If by the ninety are signified the angels, and by the sheep man, the reason is plain, because man was worthy of restoration; Heb 2:16: for nowhere does he take hold of the angels, but of the seed of Abraham he takes hold. If by the ninety we understand the just, similarly the reason is plain, because a commander loves more the soldier who falls in battle and afterwards... fights bravely at all times, than one who never fell and always fights half-heartedly. So, when someone has sinned and afterwards rises strongly and always conducts himself bravely, God loves him more; 2 Cor 7:9: I rejoice because you were made sorrowful unto penance; therefore the Lord rejoices more over him, etc., since he is of greater zeal. Yet this should not be extended to all, because a just person can have so much zeal that he pleases God more than a penitent. According to the third exposition also, the reason is clear, because he rejoices more over the one who acknowledges his sin, as is evident from the publican and the Pharisee.
Source: Commentary on Matthew