Did Einstein believe in the existence of God or was he an atheist?

In the years 1905 and 1916, Albert Einstein published his special and general theories of relativity respectively which made him one of the most influential physicists in the history of science. Einstein was a prolific thinker who could