“Repent therefore of this thy wickedness, and pray God, if perhaps the thought of thine heart may be forgiven thee.”
King James Version (KJV)
8:22 Repent - if perhaps the thought of thy heart may be forgiven thee - Without all doubt if he had repented, he would have been forgiven. The doubt was, whether he would repent. Thou art in the gall of bitterness - In the highest degree of wickedness, which is bitterness, that is, misery to the soul; and in the bond of iniquity - Fast bound therewith.
Ac 8:22 Repent therefore of this. Observe that Peter does not bid him to repent of his sins, but of this one great sin. If perhaps the thought of thine heart. This one sin is so great that Peter seems doubtful whether it will be forgiven, even on repentance and prayer.