Albert Einstein's views on religion and the existence of God were complex and often subject to interpretation. While he did not adhere to traditional religious beliefs and did not believe in a personal God who intervenes in human affairs, he expressed a sense of awe and wonder about the mysteries of the universe.
The quote you mentioned, "I want to know God's thoughts, the rest are just details," is often attributed to Einstein, although the exact wording and context may vary in different sources. It reflects his deep curiosity and desire to understand the fundamental workings of the universe.
Einstein saw the laws of physics as a way to uncover the underlying principles that govern the cosmos. By studying and comprehending these fundamental laws, he believed that one could gain insights into the "thoughts" or the deep order of the universe, which he metaphorically referred to as "God's thoughts."
Essentially, Einstein's statement emphasizes the importance he placed on uncovering the fundamental truths and laws of nature. For him, understanding these principles held greater significance than other aspects of religious or philosophical doctrines, which he considered to be secondary or less fundamental ("the rest are just details").
It is worth noting that Einstein's perspective on religion and spirituality evolved throughout his life, and he expressed various nuanced views on the topic. While he held deep reverence for the beauty and elegance of the natural world, he did not subscribe to conventional religious beliefs or notions of a personal God.