Leviticus 6:2gazel
"When a person sins and acts unfaithfully against the Lord, and deceives his companion in regard to a deposit or a security entrusted {to him,} or through robbery, or {if} he has extorted from his companion,
Robbery counted as unfaithfulness against the Lord, not only a neighbor.
Leviticus 6:4gezelah
then it shall be, when he sins and becomes guilty, that he shall restore what he took by robbery or what he got by extortion, or the deposit which was entrusted to him or the lost thing which he found,
The law requires the robber to restore what was taken.
Ezekiel 18:7gezelah
if a man does not oppress anyone, but restores to the debtor his pledge, does not commit robbery, {but} gives his bread to the hungry and covers the naked with clothing,
A righteous man does not rob but feeds the hungry.
Malachi 1:13
"You also say, 'My, how tiresome it is!' And you disdainfully sniff at it," says the Lord of hosts, "and you bring what was taken by robbery and {what is} lame or sick; so you bring the offering! Should I receive that from your hand?" says the Lord.
God refuses offerings brought from stolen goods.