From an Egyptian priest, passed down through the lawgiver Solon
In the dialogues, the tale travels a long chain: an Egyptian priest tells the Athenian statesman Solon, who passes it to his descendants, who recount it to Plato's characters. That distant, third-hand framing is part of why scholars read it as crafted fiction rather than a record.