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."

Surrounding context

11:20 Then the sister of Tahpenes bore him Genubath his son, whom Tahpenes weaned in Pharaoh's house. And Genubath was in Pharaoh's household among the sons of Pharaoh.

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."

11:22 Then Pharaoh said to him, "But what have you lacked with me, that suddenly you seek to go to your own country?" So he answered, "Nothing, but do let me go anyway."

Translation and sources