Catechism of the Catholic Church
“To respond to this invitation we must prepare ourselves for so great and so holy a moment. St. Paul urges us to examine our conscience: ‘Whoever, therefore, eats the bread or drinks the cup of the Lord in an unworthy manner will be guilty of profaning the body and blood of the Lord. Let a man examine himself, and so eat of the bread and drink of the cup. For any one who eats and drinks without discerning the body eats and drinks judgment upon himself.’ Anyone conscious of a grave sin must receive the sacrament of Reconciliation before coming to communion.”
Source: Catechism of the Catholic Church #1385