The passage in question is probably Acts 2:36-41.
The passage says:
Let all the house of Israel therefore know assuredly that God has made him both Lord and Christ, this Jesus whom you crucified."
Now when they heard this they were cut to the heart, and said to Peter and the rest of the apostles, “Brethren, what shall we do?”
And Peter said to them, "Repent, and be baptized every one of you in the name of Jesus Christ for the forgiveness of your sins; and you shall receive the gift of the Holy Spirit. For the promise is to you and to your children and to all that are far off, every one whom the Lord our God calls to him." And he testified with many other words and exhorted them, saying, “Save yourselves from this crooked generation.” So those who received his word were baptized, and there were added that day about three thousand souls.
Please note that this is not a guarantee of salvation to a person’s family. Our faith is one which makes us adopted sons and daughters of the Lord. We become part of God’s household and scripture attests to this. Likewise, the parable of the Prodigal Son has direct application to members of the household. Until the wayward son returned and repented he was according to the parable “dead.” Once he returned and repented his father said that “he was dead and is alive; he was lost, and is found.” See Luke 15:22-32
I hope this helps.