King James I of Scotland, The Kingis Quair.

The clue assumes that King James really wrote this himself but there is no reason to suppose he did not. ``Quhat'' is a distinctively Scottish form and that narrows the possibilities a lot, given the apparent date of the piece.