“A further consequence is that the appearance of the ruler was perceived as perfect in every sense, physically and mentally, he is strong and wise, these being the preconditions for his rule.
(Compare, for example, I.J. Winter, “The Body of the Able Ruler: Towards an Understanding of the Statues of Gudea,” in DUMU-E2-DUB-BA-A: Studies in Honor of Ake W. Sjöberg (ed. H. Behrens, D. Loding, and M.T. Roth; Publications of the Samuel Noah Kramer Fund 11; Philadelphia: University of Pennsylvania Museum, 1989), pp. 573-84.)
Such perfection is also mentioned repeatedly as a feature of the kings of Ur III; the best sources for this are provided by their hymns.
(See already S.N. Kramer, “Kingship in Sumer and Akkad: The Ideal King,” in Le palais et la royauté: Archéologie et civilization: Compte rendu de la XIXe Rencontre Assyriologique Internationale organisée par le Groupe François Thureau-Dangin, Paris, 29 juin–2 juillet 1971 (ed. P. Garelli; Paris: Geithner, 1974), pp. 163-76.
J. Klein, The Royal Hymns of Šulgi, King of Ur: Man’s Quest for Immortal Fame (Transactions of the American Philosophical Society 71.7; Philadelphia: American Philosophical Society, 1981); and numerous other works.)
Therefore it does not come as a surprise that in the texts from the last years of his reign, king Shulgi-r was marked with the divine classifier, which was traditionally reserved for all sorts of deities.
Roughly two centuries earlier the Old Akkadian king Narām-Sîn established this practice when he asserts that after rescuing the land from dire straits the people from various cities asked their gods to name him as their god and built him even a temple in the capital city Agade.
Such (self-)deification of the ruler was not accepted unanimously in Mesopotamia: In the later cuneiform tradition Narām-Sîn’s attempt to obliterate the border between the human and the divine spheres was branded as blasphemous.
Like the giants, the rulers of Mesopotamia could have dreams. Dreams do, of course, play a major role all over the ancient Near East. For lack of space I just mention some very early examples here. The observable parallels may speak for themselves.
The earliest attestation for a dream is attested in the famous stele of vultures of the pre-Sargonic king of Lagash, E’anatum. In E’anatum 1, 6:28 we read: “to the one who has lain down, to the one who has lain down (the deity) stood at (his) head.”
(We note that this passage follows the miraculous birth of the ruler E’anatum; presumably he was thus especially fitted for the dream message.)
For our purpose, here it is noteworthy, that a deity was the sender or transmitter of the dream. The dream was of divine origin, considered as revelation of the divine will.”
(The clearest reference to the divine revelation of a text is attested in the late Erra Epic with his evident “apocalyptic” theme where the author Kabti-ilāni-Marduk actually asserts in the colophon of the text: (5:40):
“For (the god) Erra had burned with wrath and planned to lay waste the countries and slay their peoples, but Ishum, his counsellor, appeased him and (Erra) left a remnant! Kabti-ilāni-Marduk, the son of Dabibi, (was) the composer of this tablet (= of this poem):
(The deity) revealed it to him during the night, and in the morning, when he recited (it), he did not skip a single (line) nor a single line (of his own) did he add to it ….” (5:55)
[Erra speaks] “The scribe who commits it to memory shall escape the enemy country (and) shall be honoured in his own country. In the sanctuary of (those) sages where they constantly mention my name, I will grant them wisdom.
To the house in which this tablet is placed—however furious Erra may be, however murderous the Sebettu (pleaiades or seven sisters) may be—the sword of destruction shall not come near.”
(English translation by L. Cagni, The Poem of Erra [Sources of the Ancient Near East 1.3; Malibu: Undena Publications, 1974).”
Gebhard J. Selz, “Of Heroes and Sages–Considerations of the Early Mesopotamian Background of Some Enochic Traditions,” in Armin Lange, et al, The Dead Sea Scrolls in Context, v. 2, Brill, 2011, pp. 796-7.