The first time a national anthem was sung before a sporting event happened, kind of spontaneously, before a rugby game.  On 16th Nov 1905 at Cardiff Arms Park. After New Zealand danced the Haka before the match, Wales responded by beginning to sing the Welsh national anthem, ‘Hen Wlad Fy Nhadau’