Rules FAQ:
- You can only choose an attachment in play, not in a discard pile (card abilities only interact with cards in play unless they specifically refer to an out of play area, see Abilities).
Maester.
Reaction: After you lose a challenge in which Maester of Sunspear is participating, choose an attachment and return it to its owner's hand.
Link: Decklists