The text is based on copies which were prepared from an original draft some time during the Isin Larsa period (c 1950-1700 B.C.). The original itself must be appreciably older, and it is believed today to date from the 40th century B.C The passage relating to Lilith reads as follows:
From S.N. Kramer: "Gilgamesh and the Huluppa-Tree. A Reconstructed Sumerian Text," in Assyriological Studies of the Oriental Institute of the University of Chicago. Chicago, 1938, p. 1f"After heaven and earth had been separated and mankind had been created, after Anu, Enlil and Ereskigal had taken possession of heaven, earth and the underworld; after Enki had set sail for the underworld and the sea ebbed and flowed in honor of its lord; on this day, a huluppa tree (probably a linden tree), which had been planted on the bank of the Euphrates and nourished by its waters, was uprooted by the south wind and carried away by the Euphrates. A goddess, who was wandering along the banks seized the swaying tree and--- at the behest of Anu and Enlil--- brought it to Inanna's garden in Uruk. Inanna tended the tree carefully and lovingly; she hoped to have a throne and a bed made for herself from its wood. After ten years, the tree had matured. But in the meantime, she found to her dismay that her hopes could not be fulfilled. Because during that time, a dragon had built its nest at the foot of the tree, the Zu-bird was raising its young in the crown, and the demon Lilith had built her house in the middle. But Gilgamesh, who had heard of Inanna's plight, came to her rescue. He took his heavy shield, killed the dragon with his gigantic bronze axe, which weighed seven talents and seven minas. Then the Zu-bird flew into the mountains with its young, while Lilith, petrified with fear, tore down her house and fled into the wilderness."
The remedy against Lilith is this: In that hour in which a man copulates with his wife, he should concentrate in his head on the holiness of his Master and say this:
O you who are wrapped in velvet,Then let him cover his head and his wife for one hour, and do thus each time for three days of the receiving. For a grafting which is not received within three days will not be received at all. But in the book which Ashmodai gave to King Solomon it says for thirty days, and it says that after he finished the act he should sprinkle clear water around the couch.
You have appeared!
Release, release!
Neither come nor go!
Neither you nor yours!
Go back, go back!
The sea is raging,
Its waves call you,
I hold on to the Holy One,
Wrap myself in the King's holiness.