"I vel og ve (I vel og ve Guds vilje ske!)" [Danish title] is number 2275 in the Hans Christian Andersen Center's register of Andersen's literary works, i.e. no. 775 in the category poems (the range 1501 - 2900). BFN 960.
"I vel og ve (I vel og ve Guds vilje ske!)" [Danish title] was first published 12 December 1867. Further information: Digterens danske Værker 1822-1875 number 960.
In modern Danish on p. 580 in Johan de Mylius (editor): H.C. Andersen. Samlede digte ('Collected poems', Copenhagen, 2000).