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