"You reap what you sow" is a well-known idiom, but this principle is also Biblical.
God said to Moses, “I have set before you life and death, blessing and cursing; therefore choose life, that both you and your descendants may live.” Deuteronomy 30:19.