Acts 8:14-23 NLT

14 When the apostles back in Jerusalem heard that the people of Samaria had accepted God's message, they sent Peter and John there.
15 As soon as they arrived, they prayed for these new Christians to receive the Holy Spirit.
16 The Holy Spirit had not yet come upon any of them, for they had only been baptized in the name of the Lord Jesus.
17 Then Peter and John laid their hands upon these believers, and they received the Holy Spirit.
18 When Simon saw that the Holy Spirit was given when the apostles placed their hands upon people's heads, he offered money to buy this power.
19 "Let me have this power, too," he exclaimed, "so that when I lay my hands on people, they will receive the Holy Spirit!"
20 But Peter replied, "May your money perish with you for thinking God's gift can be bought!
21 You can have no part in this, for your heart is not right before God.
22 Turn from your wickedness and pray to the Lord. Perhaps he will forgive your evil thoughts,
23 for I can see that you are full of bitterness and held captive by sin."