Proverbs 3:16:

Length of days is in her [wisdom’s] right hand; and in her left hand riches and honour.

See also:

Some of God’s Promises Have Conditions
Is There an Appointed Time for Each Person to Die?