This is a prayer of the congregation that the Lord would remember David’s vow concerning the dwelling place for the Ark.
It is difficult to know the setting of the psalm. Perhaps it was a prayer by the returned exiles who wondered about the fulfillment of God’s promises to David, primarily the promises of eternal dominion to David’s family and of worship in righteousness in Zion.