Kingdom of Egypt
It was written during the Middle Kingdom of Egypt, between 2025 and 1700 BC.