Simon wanted to buy the ability to give the Holy Spirit to others

Acts 8:18 – Now when Simon saw that through the laying on of the apostles’ hands the Holy Spirit was given, he offered them money, 19 saying, Give me also this power, that on whomsoever I lay my hands, he may receive the Holy Spirit. 20 But Peter said unto him, Thy silver perish with thee, because thou hast thought to obtain the gift of God with money.