"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".
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:
Robert Burns' "Poem on Pastoral Poetry", published in 1791, also uses the phrase:
Brewer's Dictionary of Phrase and Fable (New and Revised edition. 1981) states that the phrase is "perhaps a corruption of 'then eyne' (to the eyes)"
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: