Middle Kingdom of Egypt
The story is comparable in style, tone, and subject matter to prophetic texts of the Middle Kingdom of Egypt, such as the Prophecy of Neferti.