Acts 2:36-41

In the Old Testament, King Solomon prayed to God to forgive the sinful Israelites when they returned to God and prayed to Him. (1 Kings 8:46-50)

1 Kings 8:46 If they sin against thee, (for there is no man that sinneth not,) and thou be angry with them, and deliver them to the enemy, so that they carry them away captives unto the land of the enemy, far or near; 47 Yet if they shall bethink themselves in the land whither they were carried captives, and repent, and make supplication unto thee in the land of them that carried them captives, saying, We have sinned, and have done perversely, we have committed wickedness; 48 And so return unto thee with all their heart, and with all their soul, in the land of their enemies, which led them away captive, and pray unto thee toward their land, which thou gavest unto their fathers, the city which thou hast chosen, and the house which I have built for thy name: 49 Then hear thou their prayer and their supplication in heaven thy dwelling place, and maintain their cause, 50 And forgive thy people that have sinned against thee, and all their transgressions wherein they have transgressed against thee, and give them compassion before them who carried them captive, that they may have compassion on them:

Anyone who believes in Jesus Christ is forgiven of their sins and is saved. (Acts 2:36-42)

Acts 2:36 Therefore let all the house of Israel know assuredly, that God hath made the same Jesus, whom ye have crucified, both Lord and Christ. 37 Now when they heard this, they were pricked in their heart, and said unto Peter and to the rest of the apostles, Men and brethren, what shall we do? 38 Then Peter said unto them, Repent, and be baptized every one of you in the name of Jesus Christ for the remission of sins, and ye shall receive the gift of the Holy Ghost. 39 For the promise is unto you, and to your children, and to all that are afar off, even as many as the Lord our God shall call. 40 And with many other words did he testify and exhort, saying, Save yourselves from this untoward generation. 41 Then they that gladly received his word were baptized: and the same day there were added unto them about three thousand souls. 42 And they continued stedfastly in the apostles' doctrine and fellowship, and in breaking of bread, and in prayers.