Scripture

1 Corinthians 11:28-29

Cited in the Confessions
Westminster Shorter Catechism
Q. 97 — It is required of them that would worthily partake of the Lord's Supper, that they examine themselves of their knowledge to discern the Lord's body
Westminster Larger Catechism
Q. 112 — sacraments,
Q. 177 — and that only to such as are of years and ability to examine themselves.