The Rev Neil Gardner, minister of Canongate Kirk in Edinburgh, is domestic chaplain to the Queen.
Prince Philip’s funeral took place on Saturday.
Mr Gardner, who grew up in Dunbar before leaving for university, said much had “rightly been made of his enduring sense of duty and service”.
The minister, who previously worked at Alyth in Perth and Kinross, and as an Army chaplain with the Black Watch Regiment, said: “When Philip of Greece, as he was in those days, was appointed guardian – the equivalent of head boy – at Gordonstoun in the Easter term of 1939, [founder] Kurt Hahn described him as having ‘the greatest sense of service of all the boys in the school’.