Herodotus, 2.177 (Full text on the Scaife viewer)
“Amasis made this law for the Egyptians, that each one should reveal how he makes his living to the leader of his state each year and if he does not prove in some way that he lives justly to be punished by death. Solon took this law from Egypt and made it the rule among his people. May they keep this law forever because it is perfect.”
νόμον τε Αἰγυπτίοισι τόνδε Ἄμασις ἐστὶ ὁ καταστήσας, ἀποδεικνύναι ἔτεος ἑκάστου τῷ νομάρχῃ πάντα τινὰ Αἰγυπτίων ὅθεν βιοῦται· μὴ δὲ ποιεῦντα ταῦτα μηδε ἀποφαίνοντα δικαίην ζόην ἰθύνεσθαι θανάτῳ. Σόλων δὲ ὁ Ἀθηναῖος λαβὼν ἐξ Αἰγύπτου τοῦτον τὸν νόμον Ἀθηναίοισι ἔθετο· τῷ ἐκεῖνοι ἐς αἰεὶ χρέωνται ἐόντι ἀμώμῳ νόμῳ.