1 Samuel 24: 20-22

I know that you will surely be king and that the kingdom of Israel will be established in your hands. Now swear to me by the Lord that you will not kill off my descendants or wipe out my name from my father’s family.”

So David gave his oath to Saul. Then Saul returned home, but David and his men went up to the stronghold.