According to the video, the “doer of good becomes good, the doer of evil becomes evil”. What Hindu concept does that describe best and how?

According to the video, the “doer of good becomes good, the doer of evil becomes evil”. What Hindu concept does that describe best and how?