2 Samuel 4:9

And David answered Rechab and Baanah his brother, the sons of Rimmon the Beerothite, and said unto them, As the Lord liveth, who hath redeemed my soul out of all adversity,

Cross-references

In Genesis 48:16, Jacob calls God the Angel who redeemed him from all evil — David uses the same 'redeemed' language for his own deliverance.

In 1 Kings 1:29, David repeats this exact oath formula — showing it as a refrain of God's deliverance throughout his life.