Bag of Devouring

Artifact

Whenever you sacrifice another nontoken artifact or creature, exile it.

{2}, {T}, Sacrifice another artifact or creature: Draw a card.

{3}, {T}, Sacrifice this artifact: Roll a d10. Return up to X cards from among cards exiled with this artifact to their owners' hands, where X is the result.