Hi,
I have the date of the earliest publication of "I am a Pilgrim and a Stranger (I can tarry but a night)" as 1840. Published by Mrs. Mary Stanley Bunce Dana Shindler in 1840 Southern Harp.
The popular poem/song was republished in many different editions over the years.
Richie