To the nines
"To the nines" is an idiom meaning "to perfection" or "to the highest degree". In modern English usage, the phrase most commonly appears as "dressed to the nines" or "dressed up to the nines".
Origin
The phrase is said to be Scots in origin. The earliest written example of the phrase is from the 1719 Epistle to Ramsay by the Scottish poet William Hamilton:How to the nines they did content me.
Robert Burns' "Poem on Pastoral Poetry", published in 1791, also uses the phrase:
In thy sweet Caledonian lines.
Brewer's Dictionary of Phrase and Fable states that the phrase is "perhaps a corruption of 'then eyne' "
The phrase may have originally been associated with the Nine Worthies or the nine Muses. A poem from a 17th century collection of works by John Rawlet contains the following lines:
Finish those works in some recess;
Both the Philosopher and Divine,
And Poets most who still make their address
In private to the Nine.