I don’t know of any real-life analogue, though I would bet that some exist.
I recall that there is a fictional example in “The Adventures of Huckleberry Finn”, though: Huck believes that helping Jim escape slavery would be stealing, since that is what he had been taught living in the antebellum South, and he concludes that he will go to Hell for doing this. But he decides to help Jim anyway, even if it’s the “wrong” thing to do.
I don’t know of any real-life analogue, though I would bet that some exist. I recall that there is a fictional example in “The Adventures of Huckleberry Finn”, though: Huck believes that helping Jim escape slavery would be stealing, since that is what he had been taught living in the antebellum South, and he concludes that he will go to Hell for doing this. But he decides to help Jim anyway, even if it’s the “wrong” thing to do.