You can tell from his shaky voice, this man is scared. You ask why he's doing this. He replies it's not personal.
You talk him into lowering his weapon, that you won't resist. He does, and you ask why he's doing this again. He reluctantly opens up, saying it's for his sick son's medicine.
With a new understanding of the situation, you talk to this man more. You tell him that he clearly is uncomfortable with thieving, that you can help him get a job, and that you're more than willing to give him the money you have on you. His eyes tear up, he's so moved by your words that he vows to earn money honestly from here on. You may have had your money taken, but at least you turned a man's life around!