A set of maxims attributed to an adviser of an Egyptian pharaoh may be the world’s earliest surviving work of philosophy.