Oedipus had killed Laius, and discovered that he himself was responsible. Jocasta, upon realizing that she had married both her own son, and her husband's murderer, hanged herself. Oedipus then seized two pins from her dress and blinded himself with them. The legend of Oedipus has been retold in many versions, and was used by Sigmund Freud to name and give mythic precedent to the Oedipus complex. Variations on the legend of Oedipus are mentioned in fragments by several ancient Greek poets including Homer, Hesiod, Pindar, Aeschylus and Euripides. However, the most popular version of the legend comes from the set
Oedipus and the Sphinx pass. Failure means his own death and that of the besieged Thebans. The riddle was: "What walks on four feet in the morning, two in the afternoon and three at night?". Oedipus answered: "Man: as an infant, he crawls on all fours; as an adult, he walks on two legs and; in old age, he uses a walking stick". Oedipus was the first to answer the riddle correctly and, having heard Oedipus' answer, the Sphinx was astounded and inexplicably killed herself by throwing herself into the sea. Oedipus thereby won the freedom of the Thebans, the kingdom of that city