In the way that we can think of a gift as given under obligation, like to signify a relationship at Christmas or to show love for a spouse, is there a word for a thing taken. A word for that thing that we want to take back when someone takes something from us?
If I give you a gift, I reward you with something.
In contrast, if I take something away from you, then I am either punishing or penalizing you. As such, I would say that, in general, the opposite of a gift is a punishment or penalty.
In terms of something specific, it would be a forfeiture:
1 : the act of forfeiting : the loss of property or money because of a breach of a legal obligation
// assets subject to forfeiture
2 : something (such as money or property) that is forfeited : PENALTY
// the forfeiture for early withdrawal of the investment savings will be an amount equal to 10 percent of the investment
There is retribution
Defined by Merriam Webster as:
3 : something given or exacted in recompense especially : PUNISHMENT
That thing we take back when someone takes something from us is retribution for what they've done.