Abstract : We provide a condition under which infinite horizon discounted optimal control prob-lems can be used in order to obtain stabilizing controls for nonlinear systems. The paper gives a mathematical analysis of the problem as well as an illustration by a numerical example.