Do-right-by Definition

verb

(idiomatic) To treat, deal with, or act toward (someone) in a morally just, socially honorable fashion.

I know her new husband is a good man and wants to do right by our family.
Hey man, did you finish that transaction with my cousin? You do right by him?
Wiktionary