I believe you are referring to Harriet Beecher Stowe's Uncle Tom's Cabin. One of Tom's last act is to forgive Quimbo and Sambo. Quimbo and Sambo were ordered by Legree to beat up Tom mercilessly. However, they realize their wrongdoing and decide to heal Tom's wound. Tom then tells them they can still be saved by Jesus' grace.