1 Kings 11:15
For it came to pass, when David was in Edom, and Joab the captain of the host was gone up to bury the slain, after he had smitten every male in Edom; For it came to pass, when David was in Edom, and Joab the captain of the host was gone up to bury the slain, after he had smitten every male in Edom;
The verse supplies the background to the withdrawing of divine protection from Solomon, when restraining care was removed and hostile powers were allowed to harass and weaken the kingdom. In that judgment Hadad the Edomite was stirred up as an adversary to Solomon, together with Rezon and Jeroboam. Through such reproof and severe judgment the aim was to awaken Solomon to recognize the sinfulness of his course in turning to heathen gods, proving that the Lord had not forsaken him.