"through a glass darkly"

If anyone knows the history of this phrase could you please email me. Thanks for your assistance.

"Through A Glass Darkly" ( Såsom I en spegel ) is the title of a 1961 Bergman film, a very serious and somber movie with themes of mental illness and a search for spirituality.