Your mind wants to think whatever it wants, whenever it wants, however it wants. So, you need to be very vigilant. By the way, as you may already know, you are not your mind. You are the boss of your mind. Don't make it the other way around.
The origin of your thoughts is your mind. You are the boss of your mind. So, what's the implication?