Yes, the definition "Mathematics is a way to settle in the mind of children a habit of reasoning" was given by John Locke.
John Locke, a 17th-century English philosopher, emphasized the importance of education in shaping the mind. In his works, particularly in Some Thoughts Concerning Education (1693), Locke argued that teaching mathematics encourages clear thinking and reasoning in children. He believed that the study of mathematics not only develops practical skills but also strengthens the ability to think logically and critically, which can be applied to various aspects of life.
This perspective highlights mathematics as a tool for developing reasoning abilities and fostering intellectual discipline.