1 Kings 8:33-34

8:33 “The time will come when your people Israel are defeated by an enemy because they sinned against you. If they come back to you, renew their allegiance to you, and pray for your help in this temple, 8:34 then listen from heaven, forgive the sin of your people Israel, and bring them back to the land you gave to their ancestors.

1 Kings 8:39

8:39 then listen from your heavenly dwelling place, forgive their sin, and act favorably toward each one based on your evaluation of his motives. (Indeed you are the only one who can correctly evaluate the motives of all people.)