The tune of Thine Be the Glory was written by Handel in 1747, intended for use in Handel's Joshua oratorio; however, when it was played, it was popular enough that Handel added it to Judas Maccabaeus.
In 1884, Edmond L. Budry used Handel's tune and wrote words for them, which he titled "A Toi la Gloire."