Agyrem's first ability will return a card to the battlefield only if it's still in the graveyard by the time the delayed triggered ability resolves. Similarly, Agyrem's second ability will return a card to its owner's hand only if it's still in the graveyard by the time the delayed triggered ability resolves.