Jiddu Krishnamurti said this quote

We are asking if thought can be aware of itself. That is rather a complex question, and requires very careful observation. Thought has created wars through nationalism, through sectarian religions. Thought has created all this; God has not created the hierarchy of the church--the pope, all the robes, all the rituals, the swinging of the incense, the candles. All that paraphernalia that goes on in a cathedral or in a church is put together by thought, copied, some of it, from the ancient Egyptians, from the ancient Hindus, and Hebrews. It is all thought. So God is created by thought.