George W. MacRae maps the early Christian rituals of the Valentinians to different areas of the Israelite temple.
George W. MacRae, "The temple as a house of revelation in the Nag Hammadi texts," in The Temple in Antiquity, edited by Truman G. Madsen (Salt Lake City, UT: Bookcraft, 1984), 184–185
Two passages occur in the Gospel of Philip—familiar to Mormons who have had an interest in this writing-which show a background of this cosmic temple symbolism that was associated with the Hellenistic Jewish tradition.
The first one says:
There were three buildings specifically for sacrifice in Jerusalem. The one facing West was called the Holy, the one facing South was called the Holy of Holies, and the third, facing East, was called the Holy of the Holies, the place where only the high priest entered. Baptism is the Holy building; Redemption is the Holy of Holies; and the Holy of the Holies is the bridal chamber. Baptism includes the resurrection and the redemption, the redemption takes place in the bridal chamber, but the bridal chamber is in that which is superior to it and the others, because you will not find anything like it. Those who are familiar with it are those who pray in the Holy in Jerusalem. There are some in Jerusalem who pray only in Jerusalem awaiting the Kingdom of Heaven. These are called the Holy of the Holies, because before the veil was rent we had no other bridal chamber except the image of the bridal chamber which is above. Because of this, his veil was rent from top to bottom for it was fitting for some from below to go upward.
To comment in detail on that passage would take me beyond my own competence. But at first sight such passages look like a mere allegorization of a three-part temple in Jerusalem. Apart from the details of which way the building faced and so on, the writer is talking about an outer court, a middle court, and the inner court which is the Holy of Holies. The allegory seems to identify these with three different sacraments in the sacramental system of the Valentinean Gnostics. But I think it is more than that. It is more than that because it builds on the concept that one moves toward the divine presence as one moves successively through the outer courts of the temple toward the inner Holy of Holies, to which only the priest has access. Consequently the order in which the courts are identified with sacraments becomes very important. The initiatory rite of baptism is the outermost one. The rite of redemption, whatever that may have consisted of, is the second one. And it is the bridal chamber, the rite of which was the supreme rite for the Valentinean Gnostic, which is the approach into the presence of God himself.