Codrus
Note from The Dialogue Of Apollodorus by Plato

Codrus was a legendary king of Attica who in obedience to an oracle voluntarily sacrificed his life to save his country from a Dorian invasion.