2 Samuel 14:17, 20 “And now your servant says, ‘May the word of my lord the king secure my inheritance, for my lord the king is like an angel of God in discerning good and evil. May the LORD your God be with you.’ ” ... "Your servant Joab did this to change the present situation. My lord has wisdom like that of an angel of God--he knows everything that happens in the land."
(Also see 19:27 And he has slandered your servant to my lord the king. My lord the king is like an angel of God; so do whatever you wish.)
These words spoken by the wise woman of Tekoa in two instances are really asides and we should be careful not to make too much of them. They do appear, however, to recognise a wisdom and discernment in the minds of angels that is beyond what we ordinarily find among men. Justice and goodness are also implied. These creatures are highly intelligent and they have not only a mental dexterity but also a moral integrity that remains untouched by sin. This enables them to know good from evil with great insight.