Joab, commander of David’s army, was a brutal man, and he would pay for it at the end of his life, but he was also a wise man, which is why David put him over all the army.
Second Samuel 10:9-14 shows his wisdom in fighting battles, knowing how to split up his army against the enemy, and what to do when one part started to experience defeat and so on.
Yet, his battle wisdom made him look at all of life that way, and he did not know when to show compassion and mercy.
We might be wise at what we do for our occupations, but that wisdom may not apply in other situations of life.
Therefore, ask God for wisdom, and He will bless you (James 1:5).