Acts 5
 But Peter said, “Ananias, why has Satan filled your heart to lie to the Holy Spirit and keep back part of the price of the land for yourself? While it remained, was it not your own? And after it was sold, was it not in your own control? Why have you conceived this thing in your heart? You have not lied to men but to God.”

From my commentary:
While it remained, was it not your own? And after it was sold, was it not in your own control? This shows how unnecessary their sin was. Ananias was free to use the money for whatever he wanted, except as a way to inflate his spiritual image and pride.

Annanias was never forced to sell anything and give it to the church. He wanted to LOOK good. He wanted to look spiritual, so that all would praise HIS great deed. This is NOT why we give.

Ananias tried to inflate his ego through a public act, so Peter exposed his lie publicly. This was the Holy Spirit working through Peter through a gift of knowledge exposing the works of enemy.

This is why we pray. This is why we seek God’s face in quiet time. We need the Holy Spirit to expose the lies of the enemy for our protection and to further the kingdom of God without hinderance. We need the power given to us by the Lord, working through us in ever day situations.