The earliest reference I know is the KJV of the bible: Isaiah (Chap 6), having been floored before a vision of God, says "Woe is me, for I am undone." Be interesting to know just how close a translation of the original Hebrew this is. I wonder if Cranmer and his ilk, the translators, knew songs in which the phrase occurred.