The Sixth Commandment says to honor one’s parents and that they would be granted long life.
Exodus 20:12 states:
Honor thy father and thy mother, that thy days may be long upon the land which the L-rd thy G-d giveth thee. (Exodus 20:12)
Honoring one’s parents is next to honoring G-d. Bechor Schor is saying that G-d is saying that:
“if you show honor to your parents who benefited you in many ways, I will know that you also honor Me for the benefits that I gave you.”
As a reward, long life is promised for the observance of this commandment. Bechor Schor explains that this is perfectly reasonable, since the reward is more of a result than a reward – as those who honor their parents will thereby teach their children to honor them, and in doing so their children will care for them, prolong their lives.