"'To Harry James Potter, I leave the Snitch he caught in his first Quidditch match at Hogwarts, as a reminder of the rewards of perseverance and skill'… I noticed that your birthday cake is in the shape of a Snitch. Why is that?"
Harry received a Golden Snitch from Dumbledore; the first one he ever won playing Seeker for the Gryffindor Quidditch team. It was inscribed with the message "I open at the close". Scrimgeour was suspicious that something was inside the Snitch, as Hermione mentioned that they had flesh memories. A Snitch is not touched by bare skin before it is released, not even by the maker, who wears gloves. It carries an enchantment by which it can identify the first human to lay hands upon it, in case of a disputed capture.Dumbledore, who had prodigious magical skill, whatever his other faults, might have enchanted this Snitch so that it will open only for harry.Harry's heart was beating rather fast. He was sure that Scrimgeour was right. How could he avoid taking the Snitch with his bare hand in front of the Minister?However, when Harry touched the Snitch, nothing happened.
Later after Harry viewed Severus Snape's memories and realized that he was meant to let Lord Voldemort strike him with the Killing Curse, he spoke the words "I am about to die" to the Snitch.(I open at the close). This caused it to open, revealing the Resurrection Stone within. Harry used the stone to speak to his late father and mother, as well as Sirius Black and Remus Lupin. They stood by him as he walked to what he believed would be his death, offering comfort and helping him be as brave as he was required to be in sacrificing himself.