Explanation from Wikipedia:
Instruction of Amenemope (also called Instructions of Amenemopet, Wisdom of Amenemopet) is a literary work composed in Ancient Egypt, most likely during the Ramesside Period (ca. 1300–1075 BCE); it contains thirty chapters of advice for successful living, ostensibly written by the scribe Amenemope son of Kanakht as a legacy for his son.
A characteristic product of the New Kingdom “Age of Personal Piety”, the work reflects on the inner qualities, attitudes, and behaviours required for a happy life in the face of increasingly difficult social and economic circumstances.
It is widely regarded as one of the masterpieces of ancient near-eastern wisdom literature and has been of particular interest to modern scholars because of its similarity to the later biblical Book of Proverbs.
Blessed is the one who does not walk in step with the wicked
or stand in the way that sinners take
or sit in the company of mockers,
but whose delight is in the law of the Lord,
and who meditates on his law day and night.
That person is like a tree planted by streams of water,
which yields its fruit in season
and whose leaf does not wither—
whatever they do prospers.
Not so the wicked!
They are like chaff that the wind blows away.
Therefore the wicked will not stand in the judgment,
nor sinners in the assembly of the righteous.
For the Lord watches over the way of the righteous,
but the way of the wicked leads to destruction.