“You have lied, not to men, but to God. […] Why did you two agree to make a test of the spirit of Jehovah?”
~Acts 5:4,9
Ananias and his wife Sapphira were members of the Christian congregation in Jerusalem.
They tried to deceive their brothers and sisters by claiming they had contributed more than they had really given. (Acts 5:1,2)
Some people lie to preserve their reputation or advance their interests.
While some can deceive their friends and family, it is impossible to deceive God. (He. 4:13)
The Apostle Peter acted as God’s representative when he questioned Ananias and his wife about their deception.
He was moved to do so by God’s holy spirit.
In that sense, the couple was trying to lie to God.
As imperfect humans, from time to time we may be tempted to try to get away with improper behavior even while we serve Jehovah.
We must remember that Jehovah hates deception to the point of equating it with violence. (Ps. 5:6; Prov. 6:16,17)
If we learn to be honest with ourselves and with those around us, we can maintain a good standing before God. (Zech. 8:16,17; Luke 6:45)