Whatever arises in your mind as thought or feeling comes from one of two sources: ego or Holy Spirit.
There are no others.
The ego speaks to you through a constant stream of thoughts, feelings, desires and impulses.
Its purpose is to dominate your conscious mind, control its attention, keep it busy reacting to and acting out egoic content.
The function of the Holy Spirit is to arouse in you the desire for Truth.