Listen to counsel and take up discipline, so that you may be wise in your latter days
Other versions
King James Version
Hear counsel, and receive instruction, that thou mayest be wise in thy latter end.English Standard Version
Listen to advice and accept instruction, that you may gain wisdom in the future.New International Version
Listen to advice and accept instruction, and in the end you will be wise.