Sodium was not "discovered" in the sense of finding a new element. It was
isolated in 1807 by Sir Humphry Davy through electrolysis of molten sodium hydroxide.
So, while the element was known to exist in compounds, its isolation as a pure element occurred in 1807.