What to do for length of days, and long life, and peace

My son, forget not my law; but let thine heart keep my commandments:  

For length of days, and long life, and peace, shall they add to thee. 

Proverbs 3 : 1,2