I'd do the same TBH. At least you're giving the important stuff (cards, ID, etc.) back.
Ok, but why do you feel entitled to steal the cash? What makes the cash special? Why not steal the cards too? Or the whole wallet? Of course, you'd be much more likely to be caught using the cards...