Peter stressed this by repeating that their lie was not directed primarily against him, but against the Holy Sprit, that is, against God. And God hates hypocrisy. Yet the sin of Ananias and Sapphira was also against the church. He thus affirms the continuity of the Christian community with God's redeemed and gathered people in the Old Testament. Luke seems to be underlining the great evil of sinning against God's people.
Falsehood ruins fellowship.
The second lesson to be learned concerns the importance, even the sacredness of the human conscience. It was this openness which Ananias and Sapphira failed to maintain. Thirdly, the incident teaches the necessity of church discipline. It is a good general rule that secret sins should be dealt with secretly, private sins privately, and only public sins publicly. Usually the offender will be brought to repentance before the final stage of excommunication is reached.