[For the weapons of our warfare are not carnal but mighty in God for pulling down strongholds, casting down arguments and every high thing that exalts itself against the knowledge of God, bringing every thought into captivity to the obedience of Christ]-2 Corinthians 10:4-5
Kenneth Hagin would often say “you can’t stop a bird from flying over your head,but you can prevent it from building a nest in your hair.” In like manner, you cannot stop a thought from coming to your mind, however you can stop that thought from taking root, and from eventually coming forth through your lips as words.
You take a thought captive by replacing it with another thought (the word of God). Remember, only a thought can heal a thought; so replace toxic thoughts/thinking with correct thinking which is the Word.
Finally, brethren, whatsoever things are true, whatsoever things are honest, whatsoever things are just, whatsoever things are pure, whatsoever things are lovely, whatsoever things are of good report, if there be any virtue and if there be any praise, think on these things. Philippians 4:8