Visited the "hunger stele" today on the island of Soheil south of Elephantine. Getting there requires some hiking up a sandy hill surrounded by a maze of hieroglyphic petroglyphs from various periods - most of which are dedicated to the local triad: Khnum, Satet and Anuket. Beautiful!
This stele's text is set in the 18th regnal year of Djoser and describes the king as anxious about the land of Egypt after a seven year long bout of drought and famine. The king asks the priests for help. Long story short, Imhotep searches some archives, finds a book, informs the king that the flooding of the Nile depends on the god Khnum at Elephantine, where there is a sacred spring located from which the annual flooding originates. Imhotep travels to Elephantine (jbw), purifies himself in the temple of Khnum, and prays to him for help. He falls asleep and has a dream where Khnum god shows off his divine powers, and promises to make the Nile flow again. Imhotep reports this to the king, who then decrees to restore Khnum's temple and grants the priests of temple of Khnum at Elephantine the region between Aswan and Tachompso with all its wealth, as well as a share of all the imports from Nubia.
This is a classic propaganda text, most likely written by the priests of Elephantine to justify their position and privilege. It is also worthwhile to note that the classic "going to the archives to find an old book that reinstates and old cult that saves the people.." which was very popular in antiquity (e.g. 2 kgs 22–23) is also used here. It is too often forgotten that this was a popular narrative trope in antiquity and does not necessarily refer to historic events...
The stele is usually dated to the Ptolemaic period and the possibly relationship to the Joseph story - if any - is debated. Seven-year famines are found in many cultures in the region.