Cantiga 27 of the Cantigas de Santa Maria of Alfonso X

The Pilgrim to Santiago
A man made an annual pilgrimage to Santiago de Compostela.
One time, before setting off, he spent the night with a prostitute and left on his journey without confessing his sins.
The devil, appeared to him "whiter then ermine" / "mais branco que un armyo" in the guise of St James. He commanded him to cut off his penis and to slit his throat.
The pilgrim did as he was told and was found dead by his companions. They ran away so they would not be accused of murdering him.
Demons came to carry away the pilgrim’s soul. As they were bearing it aloft, they passed a chapel dedicated to St Peter, and St James rushed out and accused them of winning the soul deceitfully. The demons protested that the pilgrim had committed evil deeds and committed suicide. St James suggested the Virgin settle the dispute over the soul.
Mary ordered the soul to be returned to the pilgrim’s body and he was revived. However, his member was not restored.

Source: The Parchment Of The Sky: Poiesis Of A Gothic Universe By Francisco Prado-Vilar

Full Pages from the Cantigas de Santa Maria
List of Cantigas de Santa Maria
Cantigas de Santa Maria Main Page