Ramana Maharshi said this quote

The degree of freedom from unwanted thoughts and the degree of concentration on a single thought are the measures to gauge spiritual progress.