1 Kings 8:38-58

38 whatever prayer, whatever supplication is made by any man or by all thy people Israel, each knowing the affliction of his own heart and stretching out his hands toward this house;
39 then hear thou in heaven thy dwelling place, and forgive, and act, and render to each whose heart thou knowest, according to all his ways (for thou, thou only, knowest the hearts of all the children of men);
40 that they may fear thee all the days that they live in the land which thou gavest to our fathers.
41 "Likewise when a foreigner, who is not of thy people Israel, comes from a far country for thy name's sake
42 (for they shall hear of thy great name, and thy mighty hand, and of thy outstretched arm), when he comes and prays toward this house,
43 hear thou in heaven thy dwelling place, and do according to all for which the foreigner calls to thee; in order that all the peoples of the earth may know thy name and fear thee, as do thy people Israel, and that they may know that this house which I have built is called by thy name.
44 "If thy people go out to battle against their enemy, by whatever way thou shalt send them, and they pray to the LORD toward the city which thou hast chosen and the house which I have built for thy name,
45 then hear thou in heaven their prayer and their supplication, and maintain their cause.
46 "If they sin against thee--for there is no man who does not sin--and thou art angry with them, and dost give them to an enemy, so that they are carried away captive to the land of the enemy, far off or near;
47 yet if they lay it to heart in the land to which they have been carried captive, and repent, and make supplication to thee in the land of their captors, saying, 'We have sinned, and have acted perversely and wickedly';
48 if they repent with all their mind and with all their heart in the land of their enemies, who carried them captive, and pray to thee toward their land, which thou gavest to their fathers, the city which thou hast chosen, and the house which I have built for thy name;
49 then hear thou in heaven thy dwelling place their prayer and their supplication, and maintain their cause
50 and forgive thy people who have sinned against thee, and all their transgressions which they have committed against thee; and grant them compassion in the sight of those who carried them captive, that they may have compassion on them
51 (for they are thy people, and thy heritage, which thou didst bring out of Egypt, from the midst of the iron furnace).
52 Let thy eyes be open to the supplication of thy servant, and to the supplication of thy people Israel, giving ear to them whenever they call to thee.
53 For thou didst separate them from among all the peoples of the earth, to be thy heritage, as thou didst declare through Moses, thy servant, when thou didst bring our fathers out of Egypt, O Lord GOD."
54 Now as Solomon finished offering all this prayer and supplication to the LORD, he arose from before the altar of the LORD, where he had knelt with hands outstretched toward heaven;
55 and 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; not one word has failed of all his good promise, which he uttered by Moses his servant.
57 The LORD our God be with us, as he was with our fathers; may he not leave us or forsake us;
58 that he may incline our hearts to him, to walk in all his ways, and to keep his commandments, his statutes, and his ordinances, which he commanded our fathers.
California - Do Not Sell My Personal Information  California - CCPA Notice