Buyback
ADVERTISEMENT
From Diablo Wiki
The buyback interface appears at the bottom of the shopping window of each Merchant. Using this, players can buy back up to the last 1ast 12 items they've sold to any NPC as long as they have not left the game.
The buyback price is the same price as you sold it to the NPC for.