What are the Allan Ahlberg headmaster's hymn words by?

If you mean the song where the headmaster is telling the pupils off while singing a hymn The tune is when a knight won his spurs