Ben Sira 18:22

22 If you make a promise to the Lord, keep it as soon as you can. Don't wait until you are about to die to set things straight.

Ben Sira 18:22 In-Context

20 Examine your conscience before the Lord judges you; then when that time comes, he will forgive you.
21 Humble yourself before you are punished with sickness. When you have sinned, show repentance.
22 If you make a promise to the Lord, keep it as soon as you can. Don't wait until you are about to die to set things straight.
23 But before you make such a promise, be prepared to keep it. Don't try to test the Lord's patience.
24 Think! Do you want him to be angry with you on the day you die? When you face his judgment, do you want him to turn his back on you?
Scripture taken from the Good News Translation - Second Edition, Copyright 1992 by American Bible Society. Used by Permission.