1 Kings 11:21

So when Hadad heard in Egypt that David rested with his fathers, and that Joab the commander of the army was dead, Hadad said to Pharaoh, "Let me depart, that I may go to my own country."