According to one’s deeds, according to one’s behavior, so one becomes. The one who does good becomes good, the one who does evil becomes evil. One becomes virtuous by virtuous action and evil by evil action.§
Śukla Yajur Veda, Bṛihadāraṇyaka Upanishad, 4.4.5. VE, P. 759§