"One of the earliest and most commonly-cited texts for those looking for early precursors to science fiction is the ancient Mesopotamian Epic of Gilgamesh, with the earliest text versions identified as being from about 2000 BCE."
https://en.wikipedia.org/wiki/History_of_science_fiction
/2