I think you're asking about the specific novel 'Bandit' by author John Doe, right? Because just asking about a generic 'bandit novel' doesn't really give us much to go on, there are hundreds. Assuming we're talking about that particular one, the ending is pretty divisive among the fanbase. The protagonist, Cal, ends up turning over his entire share of the heist loot to the family of a guard who died during the opening heist back in chapter two. It's meant to be this big redemption moment, showing he's moved past being a selfish thief, but honestly? It felt unearned to me. We spent the whole book with him outsmarting everyone, being three steps ahead, and then in the last twenty pages he has a sudden crisis of conscience after a single conversation with the guard's widow. The mechanics of how he even finds her are pretty shaky, too—relies on a coincidence that the book lampshades but doesn't really justify. I get what the author was going for, a 'the real treasure was the humanity we found along the way' thing, but it clashes with the gritty, survivalist tone of the first three-quarters. The final scene is just him walking away from the city, alone, with the sunrise behind him. Very cinematic, but kind of hollow after all that build-up. A lot of readers online loved it, called it poetic and mature. I just wanted him to either get away clean or face a more concrete consequence, you know? Something with teeth. This middle-ground moralizing left me cold.
What really bugs me is how it handles Maria, his partner/love interest. She takes her cut and leaves for the coast without him, which is probably the most realistic beat in the whole finale. Their final exchange on the docks is actually well done, understated and sad. But then the book immediately undercuts it by having Cal's grand gesture happen right after, so her pragmatic choice feels like it's being judged as lesser. I don't think that was the intention, but that's how it reads. The epilogue, a brief newspaper clipping about an anonymous donation to a new orphanage, is a nice touch, though. I'll give it that. Overall, the ending tries to graft a literary fiction conclusion onto a pulp adventure story, and the seams show.