Thich Nhat Hanh said this quote

To take hold of your mind, you must practice mindfulness of the mind. You must know how to observe and recognize the presence of every feeling and thought which arises in you.