--- Ascribed to Albert Einstein. QuoteInvestigator makes a strong case that "this saying was derived from the words of Bob Samples who was presenting his individual analysis of Albert Einstein. . . . the ascription to Einstein is spurious."
From the QuoteInvestigator page, here's the root excerpt from Bob Samples, The Metaphoric Mind: A Celebration of Creative Consciousness (1976), p. 26
The metaphoric mind is a maverick. It is as wild and unruly as a child. It follows us doggedly and plagues us with its presence as we wander the contrived corridors of rationality. It is a metaphoric link with the unknown called religion that causes us to build cathedrals — and the very cathedrals are built with rational, logical plans. When some personal crisis or the bewildering chaos of everyday life closes in on us, we often rush to worship the rationally-planned cathedral and ignore the religion. Albert Einstein called the intuitive or metaphoric mind a sacred gift. He added that the rational mind was a faithful servant. It is paradoxical that in the context of modern life we have begun to worship the servant and defile the divine.