Scripture

1 Corinthians 11:27-34

Cited in the Confessions
Westminster Confession of Faith
Chapter 30 · Article 3 — …holy profession of the gospel; and for preventing the wrath of God, which might justly fall upon the Church, if they should suffer his covenant, and the seals thereof, to be profaned by notorious and obstinate offenders.
Westminster Larger Catechism
Q. 173 — …found to be ignorant or scandalous, notwithstanding their profession of the faith, and desire to come to the Lord's supper, may and ought to be kept from that sacrament, by the power which Christ hath left in his church,