excerpt:
Einstein also clarified his religious views, stating that he believed there was an “old one” who was the ultimate lawgiver. He wrote that he did not believe in a personal God that intervened in human affairs but instead believed in the God of the 17th-century Dutch Jewish philosopher Benedict de Spinoza—the God of harmony and beauty. His task, he believed, was to formulate a master theory that would allow him to “read the mind of God.” He would write, ” I’m not an atheist and I don’t think I can call myself a pantheist. We are in the position of a little child entering a huge library filled with books in many different languages.…The child dimly suspects a mysterious order in the arrangement of the books but doesn’t know what it is. That, it seems to me, is the attitude of even the most intelligent human being toward God.”
https://www.britannica.com/biography/Albert-Einstein/Nazi-backlash-and-coming-to-America