As the song says:
In the beauty of the lilies Christ was born across the sea,
With a glory in his bosom that transfigures you and me;
As he died to make men holy, let us die to make men free,
While God is marching on.
The posted quote does not mention Christianity or the New Testament. The Bible contains rules regarding the treatment of slaves.
The song is irrelevant.