Romans 4:2

Amplified Bible (AMP)
For if Abraham was justified [that is, acquitted from the guilt of his sins] by works [those things he did that were good], he has something to boast about, but not before God.

Read Romans 4:2 in other translations