O when my righteous Judge shall come. [The Judgment Day.] Miller's account of this hymn in his Singers and Songs, &c, 1869, p. 182, is:—
"It was in this fourth edition [of the Lady Huntingdon Hymn Book] that there appeared for the first time the striking and well-known hymn by the Countess ‘Oh! when my righteous Judge shall come.' . . . It is the second part of a piece on the Judgment Day which has a first part of five verses, beginning ‘We soon shall hear the midnight cry.'"
This statement by Miller is based upon information which he received from Daniel Sedgwick. On turning to D. Sedgwick's own copy of the edition of the Lady Huntingdon Hymn Book referred to by Miller, we find, first, two separate and distinct hymns numbered 146 and 147, and beginning respectively, "We soon shall hear the midnight cry” and "O when my righteous Judge shall come;" and, secondly, a note in pencil in Sedgwick's handwriting which reads, "Hymn 146 and 147 seem to be both by the same Author-—perhaps the Countess's." On turning to Sedgwick's copy of Miller's Singers and Songs, we find, written by Sedgwick opposite the words quoted by Miller as above, the following:—
" Upon the testimony of the Rev. Thomas Young of Canterbury this hymn was composed by Charles Wesley. None doubt it was wrote at the suggestion of the Countess by C. Wesley."
It is clear that these guesses of Sedgwick are worthless. The history of the hymn, so far as we have been able to trace it, is as follows:—
(1) In an enlarged edition of the Lady Huntingdon Collection, circa 1774, it was given, together with "We soon shall hear the midnight cry" (as Nos. 145 and 147), in 4 stanzas of 6 lines, and in common with all the rest of the hymns in the collection without signature. Both hymns were subsequently omitted from all official editions of the hymn-book, a fact which tells greatly against the guess that they were written by the Countess.
(2) We next find both hymns in the 1775 Appendix by L. Coughlan to J. Bazlee's Select Collection of Psalms & Hymns . . . for the Use of the Congregation of Cumberland Street ,[London] Chapel. [Lady Huntingdon.] They are numbered 295, 296.
(3) "We soon shall hear the midnight cry," is seldom found after this date; but its companion hymn, "0 when my righteous Judge shall come," appears in Rippon's Baptist Selection, 1787, No. 579, as "When Thou, my righteous Judge, shalt come." This was repeated in numerous hymn-books in Great Britain and America, and is the popular form of the hymn.
The most, therefore, that can be said with regard to its authorship is that it is "Anon. Lady Huntingdon’s Hymn Book, circa 1774: Rippon’s Baptist Selection 1787."
--John Julian, Dictionary of Hymnology (1907)