James 2:9

2:9 But if you show prejudice, you are committing sin and are convicted by the law as violators.

James 4:17

4:17 So whoever knows what is good to do and does not do it is guilty of sin.