With God, what we declare on earth is declared in heaven. He fulfils what we commit to in union with Him.
Psalm 132 is a tale of two parallel oaths.
1 David … 2 swore an oath to the Lord, … 3 ‘I will not enter my house or go to my bed,… 5 till I find …, a dwelling for the Mighty One of Jacob.’
David would not rest till he found a dwelling for the Lord. An oath carried out passionately, even after Nathan told him that he was not the one to build a temple for the Lord.
Most would say, ‘Oops!’ and revoke their vow. David dedicated his vast wealth to the construction of the temple.
In v11 we see a parallel oath. There is nothing to indicate which came first.
11 The Lord swore an oath to David, a sure oath he will not revoke: ‘One of your own descendants I will place on your throne.
As David kept his oath, so the Lord would not revoke His. When David failed, the Lord redeemed! David’s oath came from his heart; the Lord swears with all of His being – and we see that oath fulfilled in Jesus who reigns for ever.
13 For the Lord has chosen Zion, he has desired it for his dwelling, saying, 14 ‘This is my resting place for ever and ever; …, for I have desired it.
David chooses Jerusalem and wants the Lord’s presence with Him. The Lord chooses Zion for his dwelling; apparently independent yet together.
For the more complete thinking behind this follow this link