Sargon Of Akkad around 2300 BCE did some writing but we have very little of it:
"My mother was a high priestess,
my father I knew not.
The brothers of my father loved the hills.
My city is Azupiranu, which is situated on the banks of the Euphrates.
My high priestess mother conceived me, in secret she bore me.
She set me in a basket of rushes, with bitumen she sealed my lid.
She cast me into the river which rose over me.
The river bore me up and carried me to Akki, the drawer of water.
Akki, the drawer of water, took me as his son and reared me.
Akki, the drawer of water, appointed me as his gardener.
While I was a gardener, Ishtar granted me her love, and for four and ... years I exercised kingship."
The punctuation is/are modern edits.
"My mother was a high priestess,
my father I knew not.
The brothers of my father loved the hills.
My city is Azupiranu, which is situated on the banks of the Euphrates.
My high priestess mother conceived me, in secret she bore me.
She set me in a basket of rushes, with bitumen she sealed my lid.
She cast me into the river which rose over me.
The river bore me up and carried me to Akki, the drawer of water.
Akki, the drawer of water, took me as his son and reared me.
Akki, the drawer of water, appointed me as his gardener.
While I was a gardener, Ishtar granted me her love, and for four and ... years I exercised kingship."
The punctuation is/are modern edits.