If Abraham was indeed justified by works, he had something to boast about, but not before God.
For if Abraham were justified by works, he hath whereof to glory; but not before God.