to Abraham by purchase
These words complete the idea that begins with the word "passed" in verse 17. "became Abraham's possession when he purchased it" or "belonged to Abraham after he bought it"
in the presence of the sons of Heth
"with the people of Heth watching as witnesses"