I'd look around to see if anyone was obviously coming back to look for it, but if not, I'd keep it. That said, none of the self-serve checkouts around here take cash, so this isn't a situation I'll ever encounter.
This is my signature. It exists to keep people from skipping the last line of my posts.