James 2:8

If you really fulfill the royal law stated in Scripture, “Love your neighbor as yourself,” you are doing well.

Note Leviticus 19:18

BSB · Berean Standard Bible
If ye fulfil the royal law according to the scripture, Thou shalt love thy neighbour as thyself, ye do well:
KJV · King James Version
However, if you fulfill the royal law according to the Scripture, “You shall love your neighbor as yourself,” you do well.
WEB · World English Bible
Howbeit if ye fulfil the royal law, according to the scripture, Thou shalt love thy neighbor as thyself, ye do well:
ASV · American Standard Version

Related passages

From the Treasury of Scripture Knowledge, grouped by the word they explain.

the royal
James 2:12; James 1:25; 1 Peter 2:9
Thou
Leviticus 19:18, 34; Matthew 22:39; Mark 12:31–33; Luke 10:27–37; Romans 13:8, 9; Galatians 5:14; Galatians 6:2; 1 Thessalonians 4:9
ye do
James 2:19; 1 Kings 8:18; 2 Kings 7:9; Jonah 4:4, 9; Matthew 25:21, 23; Philippians 4:14