The Nag Hammadi Library is a collection of Gnostic texts discovered near the Upper Egyptian town of Nag Hammadi in 1945. Twelve leather-bound papyrus codices buried in a sealed jar were found by a local farmer named Mohammed al-Samman.