10 Wherefore was Simon the sorcerer condemned? Was it not that he came to the Apostles, and said, Give me also this power, that on whomsoever I lay hands, he may receive the Holy Ghost? For he said not, “Give me also the fellowship of the Holy Ghost,” but “Give me the power;” that he might sell to others that which could not be sold, and which he did not himself possess. He offered money also to them who had no possessions; and this, though he saw men bringing the prices of the things sold, and laying them at the Apostles' feet.
And he considered not that they who trod under foot the wealth which was brought for the maintenance of the poor, were not likely to give the power of the Holy Ghost for a bribe. But what say they to Simon? Your money perish with you, because you have thought to purchase the gift of God with money; for you are a second Judas, for expecting to buy the grace of the Spirit with money. If then Simon, for wishing to get this power for a price, is to perish, how great is the impiety of Manes, who said that he was the Holy Ghost?
Let us hate them who are worthy of hatred; let us turn away from them from whom God turns away; let us also ourselves say unto God with all boldness concerning all heretics, Do not I hate them, O Lord, that hate You, and am not I grieved with Your enemies? For there is also an enmity which is right, according as it is written, I will put enmity between you and her seed; for friendship with the serpent works enmity with God, and death.
Source: Catechetical Lectures (New Advent)