It was written by David Allan Coe. But Steve Goodman wrote him a note, saying he had nothing in the song about prison or momma or trains and offering a final verse. "It was late when my momma got out of prison. And I went to pick her up in the rain. But right after momma got into my pick-up truck, my momma got run over by a doggoned train." Robert.