Einstein was a strict determinist who could not come to accept quantum theory. He did not believe that God had free will. He ended his life an atheist and in my opinion quite depressed.
That isn't quite precisely true. He didn't like the implications of quantum theory and tried to find ways around them, which failed because he was first and foremost the most brilliant physicist of the time. And despite not liking the implications he was after all one of the quintessential founders of the field with unsurpassed incites into how things work. His prejudice was that "God does not play dice" but everything he advanced as serious scientific work piled on the evidence to the contrary.