Gautama Buddha said this quote

Know well what leads you forward and what holds you back, and choose the path that leads to wisdom.