If a man sin against his neighbour, and an oath be laid upon him to make him swear, and the oath come before thine altar in this house;
The verse belongs to Solomon's prayer offered after the temple was erected at its dedication. The prayer was spoken aloud while kneeling on a brazen scaffold in the presence and hearing of the people of Israel, and its words are preserved in the Bible. God answered the prayer by sending fire from heaven to consume the burnt offering and by appearing to Solomon by night to say He had heard it. The verse records Solomon's request that when a person sins against a neighbor and an oath comes before the altar, God hear and judge the matter by punishing the wicked according to his deeds and justifying the righteous according to his righteousness. Although the temple was dedicated for worship, God is not confined to it, but meets His people by His Spirit wherever they assemble, visits them in their homes, and may be worshiped in every place.
2 Chronicles 6:22 belongs to Solomon's comprehensive prayer at the dedication of the temple, recorded in 2 Chronicles 6:12-42. That prayer was offered at the dedication of the first temple, the house prepared for God to place His name there, before the assembled hosts of Israel, and it included petitions both for Israel and for foreigners. In that setting Solomon kneeled down upon his knees and spread forth his hands toward heaven in words full of beautiful and sublime sentiment. What is recorded is what he said, not what he thought, an audible prayer spoken in the ears of all the people. The verse falls within the account of Solomon's temple and its services, a section that shows the religious purpose of Chronicles and its emphasis on God's care for His people and His purpose to save them. It means that when one person sins against a neighbor and an oath is laid upon him and brought before God's altar in the house, Solomon asks God to hear and judge the matter by punishing the wicked according to his deeds and justifying the righteous according to his righteousness. When someone trespassed against a neighbor, turning toward the Lord's house was part of seeking pardon, because the temple represented God's dwelling place and His personal presence. Israel's prayers and appeals for forgiveness were directed toward the temple as the earthly representation of God's dwelling in heaven. God's hearing and forgiveness come from His heavenly throne, and blessings come from the heavenly courts through Christ's ministry. Although the temple was dedicated for worship, God is not confined to it, for He meets His people by His Spirit wherever they assemble and visits them in their homes, and He may be worshiped in every place. The verse shows by the example of those who are safe to follow that public prayer is right to practice.