The words David recalls are taken from the end of Sophocles' Greek tragedy, Oedipus the King, based on the mythical King of Thebes, who fulfilled his destiny by murdering his father and marrying his mother. The play charts the downfall of Oedipus, as in his efforts to banish a plague from Thebes, he tries and ultimately fails to thwart the fate the gods have trust upon him.
The entire text of the play is available online, here.
The name Oedipus has been very famously associated with The Oedipus Complex, a theory developed by Sigmund Freud which deals with a son's unconscious need for the exclusive love of his mother and subsequent desire to take their father's place with the mother. For a strictly lighthearted take on the Oedipus legend and the complex it provided inspiration for, see the video.