Dunfermline Abbey, South Front
In about 1128 Queen Margaret's youngest son, David I, who was born in Dunfermline, raised the priory she had founded to the status of an abbey and invited Geoffrey, prior of Canterbury, to become its first abbot. David was responsible for building the greater part of the new abbey church which was bigger and architecturally more splendid than any existing building in Scotland. It was consecrated in 1150. Only the 106-feet-long nave now survives, representing about half of the original structure. Such was the extent of David's benefactions to the Scottish Church that he became a popular saint, though a later chronicler accused him of leaving "the Kirk ower rich and the Crown ower poor". Among his many gifts to the abbey was a teind (tenth) of his wild mares in Fife, a proportion of the seals taken at Kinghorn and half the revenue raised from pilgrims using the Queensferry crossing. He was buried in the church next to his mother in 1153.
"King David, beyond all his ancestors the most noble founder of monasteries, died at Carlisle, 9th June. While his body was borne to Dunfermline, the Scottish Sea [River Forth] smoothed its waves, but when it left the beach they began to swell again." -- J Bain (ed.), Calendar of Documents Relating to Scotland, 1272-1307, Edinburgh 1884
"He built fifteen abbeys in Scotland and donated to them various lands, rents and possessions. And so King James I, when he visited his tomb at Dunfermline, said that he was a sore saint for the Crown, by which he meant that he endowed the Kirk too richly and left the Crown too poor." -- The Chronicles of Scotland, compiled by Hector Boece, translated by James Bellenden, 1531, Vol II., The Scottish Text Society, Edinburgh 1941