Wisdom literature
Wisdom literature is a genre of literature common in the ancient Near East. It consists of statements by sages and the wise that offer teachings about divinity and virtue. Although this genre uses techniques of traditional oral storytelling, it was disseminated in written form. The earliest known wisdom literature dates back to the middle of the 3rd millennium BC, originating from ancient Mesopotamia and Egypt. These regions continued to produce wisdom literature over the subsequent two and a half millennia. Wisdom literature from Jewish, Greek, Chinese, and Indian cultures started appearing around the middle of the 1st millennium BC. In the 1st millennium AD, Egyptian-Greek wisdom literature emerged, some elements of which were later incorporated into Islamic thought. Much of wisdom literature can be broadly categorized into two types - conservative "positive wisdom" and critical "negative wisdom" or "vanity literature":
 Conservative Positive Wisdom - Pragmatic, real-world advice about proper behavior and actions, attaining success in life, living a good and fulfilling life, etc.. Examples of this genre include: Proverbs, The Instructions of Shuruppak, and first part of Sima Milka. Critical Negative Wisdom (AKA "Vanity Literature" or "Wisdom in Protest") - A more pessimistic outlook, frequently expressing skepticism about the scope of human achievements, highlighting the inevitability of mortality, advocating the rejection of all material gains, and expressing the carpe diem view that, since nothing has intrinsic value (vanity theme) and all will come to an end (memento mori theme), therefore one should just enjoy life to the fullest while they can (carpe diem theme). Examples of this genre include: Qohelet, The Ballad of Early Rulers, Enlil and Namzitarra, the second part of Sima Milka (the son's response), and Nig-Nam Nu-Kal ("Nothing is of Value"). Another common genre is existential works that deal with the relationship between man and God, divine reward and punishment, theodicy, the problem of evil, and why bad things happen to good people. The protagonist is a "just sufferer" - a good person beset by tragedy, who tries to understand his lot in life. The most well known example is the Book of Job, however it was preceded by, and likely based on, earlier Mesopotamian works such as The Babylonian Theodicy (sometimes called The Babylonian Job), Ludlul bēl nēmeqi ("I Will Praise the Lord of Wisdom" or "The Poem of the Righteous Sufferer"), Dialogue between a Man and His God, and the Sumerian Man and His God. The literary genre of mirrors for princes, which has a long history in Islamic and Western Renaissance literature, is a secular cognate of wisdom literature. In classical antiquity, the didactic poetry of Hesiod, particularly his Works and Days, was regarded as a source of knowledge similar to the wisdom literature of Egypt, Babylonia and Israel. Pre-Islamic poetry is replete with many poems of wisdom, including the poetry of Zuhayr bin Abī Sūlmā (520–609). Ancient Mesopotamian literature
The wisdom literature from Sumer and Babylonia is among the most ancient in the world, with the Sumerian documents dating back to the third millennium BC and the Babylonian dating to the second millennium BC. Many of the extant texts uncovered at Nippur are as ancient as the 18th century BC. Most of these texts are wisdom in the form of dialogues or hymns, such as the Hymn to Enlil, the All-Beneficent from ancient Sumer. Proverbs were particularly popular among the Sumerians, with many fables and anecdotes therein, such as the Debate Between Winter and Summer, which Assyriologist Samuel Noah Kramer has noted as paralleling the story of Cain and Abel in the Book of Genesis () and the form of disputation is similar to that between Job and his friends in the Book of Job (written c. 6th century BC). Several other ancient Mesopotamian texts parallel the Book of Job, including the Sumerian Man and his God (remade by the Old Babylonians into Dialogue between a Man and His God, c. 19th–16th centuries BC) and the Akkadian text, The Poem of the Righteous Sufferer; the latter text concerns a man who has been faithful his whole life and yet suffers unjustly until he is ultimately delivered from his afflictions. The ancient poem known as the Babylonian Theodicy from 17th to 10th centuries BC also features a dialogue between a sufferer and his friend on the unrighteousness of the world. The 5th-century BC Aramaic story Words of Ahikar is full of sayings and proverbs, many similar to local Babylonian and Persian aphorisms as well as passages similar to parts of the Book of Proverbs and others to the deuterocanonical Wisdom of Sirach. Notable examples
Instructions of Shuruppak (mid-3rd millennium BC, Sumer): The oldest/earliest known wisdom literature, as well as one of the longest-lived, and most widely disseminated in Mesopotamia. It presents advice from a father (Shuruppak) to his son (Ziusudra) on various aspects of life, from personal conduct to social relations. The Instructions contain precepts that reflect those later included in the Ten Commandments, and other sayings that are reflected in the biblical Book of Proverbs. The Counsels of Wisdom (AKA "Teachings of the Sages"): A 150 line compilation of Sumerian and Akkadian proverbs that cover a variety of topics, including ethical conduct and wisdom. Specific topics include: what kind of company to keep, conflict avoidance and diffusion, importance of propriety in speech, the reward of personal piety, etc.. The Instructions of Ur-Ninurta (early-2nd millennium BC): Includes two wisdom sections - “the instructions of the god” and “the instructions of the farmer”. The “instructions of the god” recommend proper religious and moral behavior by contrasting the reward of the god‐fearing with the punishment of the disobedient. The “instructions of the farmer” include agricultural advice. The text ends with short expressions of humility and submission. Instructions of Shupe‐Ameli (AKA: "S(h)ima Milka" or "Hear the Advice"): A father provides his son with conservative "Positive Wisdom" (to work with friends, avoid bad company, not desire other men's wives, etc. ); however, the son counters with critical "Negative Wisdom" commonly found in the "Vanity Literature" or "Wisdom in Protest" genre of wisdom literature (it is all pointless since you will die). Nig-Nam Nu-Kal ("Nothing is of Value"): A number of short Sumerian that celebrate life with the repeated refrain "Nothing is of worth, but life itself is sweet". Ancient Egyptian literature

In ancient Egyptian literature, wisdom literature belonged to the sebayt ("teaching") genre which flourished during the Middle Kingdom of Egypt and became canonical during the New Kingdom. Notable works of this genre include the Instructions of Kagemni, The Maxims of Ptahhotep, the Instructions of Amenemhat, the Loyalist Teaching. Hymns such as A Prayer to Re-Har-akhti (c. 1230 BC) feature the confession of sins and appeal for mercy:

Much of the surviving wisdom literature of ancient Egypt was concerned with the afterlife. Some of these take the form of dialogues, such as The Debate Between a Man and his Soul from 20th–18th centuries BC, which features a man from the Middle Kingdom lamenting about life as he speaks with his ba. Other texts display a variety of views concerning life after death, including the rationalist skeptical The Immortality of Writers and the Harper's Songs, the latter of which oscillates between hopeful confidence and reasonable doubt. Hermetic tradition

The Corpus Hermeticum is a piece of Egyptian-Greek wisdom literature in the form of a dialogue between Hermes Trismegistus and a disciple. The majority of the text date to the 1st–4th century AD, though the original materials the texts may be older; recent scholarship confirms that the syncretic nature of Hermeticism arose during the times of Roman Egypt, but the contents of the tradition parallel the older wisdom literature of Ancient Egypt, suggesting origins during the Pharaonic Age. The Hermetic texts of the Egyptians mostly dealt with summoning spirits, animating statues, Babylonian astrology, and the then-new practice of alchemy; additional mystical subjects include divine oneness, purification of the soul, and rebirth through the enlightenment of the mind. Islamic Hermeticism
The wisdom literature of Egyptian Hermeticism ended up as part of Islamic tradition, with his writings considered by the Abbasids as sacred inheritance from the Prophets and Hermes himself as the ancestor of the Prophet Muhammad. In the version of the Hermetic texts kept by the Ikhwan al-Safa, Hermes Trismegistus is identified as the ancient prophet Idris; according to their tradition, Idris traveled from Egypt into heaven and Eden, bringing the Black Stone back to earth when he landed in India. The star-worshipping sect known as the Sabians of Harran also believed that their doctrine descended from Hermes Trismegistus. Biblical wisdom literature and Jewish texts

The most famous examples of wisdom literature are found in the Bible. Wisdom is a central topic in the Sapiential Books , i.e., Proverbs, Psalms, Job, Song of Songs, Ecclesiastes, Book of Wisdom, Wisdom of Sirach, and to some extent Baruch. Not all the Psalms are usually regarded as belonging to the Wisdom tradition. Others such as Epistle of Aristeas, Pseudo-Phocylides and 4 Maccabees are also considered sapiential. The later Sayings of the Fathers, or Pirkei Avot in the Talmud follows in the tradition of wisdom literature, focusing more on Torah study as a means for achieving a reward, rather than studying wisdom for its own sake. Other traditions

 Works and Days by Hesiod (c. 750–650 BC) and Hávamál from Old Norse texts (c. 1200) have both been analyzed in terms of the oral transmission of wisdom literature to other cultures. Subhashita , a genre of Sanskrit literature is another predominant form of wisdom poetry. Several thousands verses covering wide range of ethics and righteousness have been written and compiled in anthologies called Subhashitani by various authors through ancient and mediaeval period in India. Analects were a collection of aphorisms of the ancient Chinese philisopher Confucius. 