Peter confronted Ananias for lying to the Holy Spirit and keeping money for himself that was meant to be donated from the sale of his land. Ananias had promised to donate all the proceeds but secretly kept some for himself. Peter asked Ananias why Satan had filled his heart so that he would lie and attempt to deceive the Holy Spirit by withdrawing part of the money.