Gospel of Thomas
One of the Gnostic Gospels.
This is said to contain the main part of the Mark Mason's Ritual.
'Jesus said, "Show me the stone which the builders have rejected. That one in the cornerstone."'
This is somewhat similar to the wording in the Gospel of Matthew, in Mark, and in Luke.
It is said that only in the Gospel of Thomas does Jesus ask to be shown the rejected stone. This may be part of the reasons that the Freemasons are considered by some to be related to Gnosticism.