Accidentally sold legendary gear

Is there a way to get it back?