Were the works Abraham did, as discussed in James, only to men?
"Was not Abraham our father justified by works when he offered Isaac his son on the altar? Do you see that faith was working together with his works, and by works faith was made perfect? And the Scripture was fulfilled which says, "Abraham believed God, and it was accounted to him for righteousness." And he was called the friend of God" (James 2:21-23).
The relationship is not between Abraham and man but Abraham and God. The works he did were those commanded by God of him.
"For we are His workmanship, created in Christ Jesus for good works, which God prepared beforehand that we should walk in them" (Ephesians 2:10).