Not out of right practice comes right thinking, but out of right thinking comes right practice. It matters enormously what you think. If you think falsely, you will act mistakenly; if you think basely, your conduct will suit your thinking.
Daily meditations on the path and its qualifications: from the works of Annie Besant (ed. 1943)