This song was first published in "Slave Songs of the US" in 1867. It was both a work song and a spiritual.