The Dialogue between a Man and His God is the earliest known text to address the answer to the question of why a god permits evil, or theodicy, a reflection on human suffering. It is a piece of Wisdom Literature extant on a single clay cuneiform tablet written in Akkadian and attributed to Kalbanum, on the last line, an individual otherwise unknown. It is dated to the latter part of the Old Babylonian period, around about the reign of Ammi-Ditana according to Lambert, and is currently housed in the Louvre Museum. ... It shares much of its style with an earlier Sumerian work, Man and His God, a penitential prayer of the UR III period.
Translation at link: https://en.m.wikipedia.org/wiki/Dial...n_and_His_God#