2 Chronicles 6.36-39
“When they sin against You (for there is no one who does not sin), and You become angry with them and deliver them to the enemy, and they take them captive to a land far or near; 37 yet when they come to themselves in the land where they were carried captive, and repent, and make supplication to You in the land of their captivity, saying, ‘We have sinned, we have done wrong, and have committed wickedness’; 38 and when they return to You with all their heart and with all their soul in the land of their captivity, where they have been carried captive, and pray toward their land which You gave to their fathers, the city which You have chosen, and toward the temple which I have built for Your name: 39 then hear from heaven Your dwelling place their prayer and their supplications, and maintain their cause, and forgive Your people who have sinned against You."
Solomon prays to God as the temple is dedicated, that God would hear His people when they confess their sin toward or at the new temple. Solomon built it for God’s name, and the one name given to us by which we can be saved in our Lord Jesus, God’s Son and Messiah. As you come to God to confess your sins, plead the blood of Jesus shed on the cross, and He will maintain your cause and forgive you. Do not dare confess sin without 3 things: an appeal to Christ, sincere grief at your offense against God, real readiness to return to obedience.