46 “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 the land of the enemy, far or near; 47 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 those who took them captive, saying, ‘We have sinned and done wrong, we have committed wickedness’; 48 and when they return to You with all their heart and with all their soul in the land of their enemies who led them away captive, and pray to You toward their land which You gave to their fathers, the city which You have chosen and the temple which I have built for Your name: 49 then hear in heaven Your dwelling place their prayer and their supplication, and maintain their cause, 50 and forgive Your people who have sinned against You, and all their transgressions which they have transgressed against You; and grant them compassion before those who took them captive, that they may have compassion on them 51 (for they are Your people and Your inheritance, whom You brought out of Egypt, out of the iron furnace), 52 that Your eyes may be open to the supplication of Your servant and the supplication of Your people Israel, to listen to them whenever they call to You. 53 For You separated them from among all the peoples of the earth to be Your inheritance, as You spoke by Your servant Moses, when You brought our fathers out of Egypt, O Lord God.”
54 And so it was, when Solomon had finished praying all this prayer and supplication to the Lord, that he arose from before the altar of the Lord, from kneeling on his knees with his hands spread up to heaven. 55 Then he stood and blessed all the assembly of Israel with a loud voice, saying: 56 “Blessed be the Lord, who has given rest to His people Israel, according to all that He promised. There has not failed one word of all His good promise, which He promised through His servant Moses. 57 May the Lord our God be with us, as He was with our fathers. May He not leave us nor forsake us, 58 that He may incline our hearts to Himself, to walk in all His ways, and to keep His commandments and His statutes and His judgments, which He commanded our fathers. 59 And may these words of mine, with which I have made supplication before the Lord, be near the Lord our God day and night, that He may maintain the cause of His servant and the cause of His people Israel, as each day may require, 60 that all the peoples of the earth may know that the Lord is God; there is no other. 61 Let your heart therefore be loyal to the Lord our God, to walk in His statutes and keep His commandments, as at this day.”
62 Then the king and all Israel with him offered sacrifices before the Lord. 63 And Solomon offered a sacrifice of peace offerings, which he offered to the Lord, twenty-two thousand bulls and one hundred and twenty thousand sheep. So the king and all the children of Israel dedicated the house of the Lord. 64 On the same day the king consecrated the middle of the court that was in front of the house of the Lord; for there he offered burnt offerings, grain offerings, and the fat of the peace offerings, because the bronze altar that was before the Lordwas too small to receive the burnt offerings, the grain offerings, and the fat of the peace offerings.
65 At that time Solomon held a feast, and all Israel with him, a great assembly from the entrance of Hamath to the Brook of Egypt, before the Lord our God, seven days and seven more days—fourteen days. 66 On the eighth day he sent the people away; and they blessed the king, and went to their tents joyful and glad of heart for all the good that the Lordhad done for His servant David, and for Israel His people.
-1 Kings 8:46-66