McGonagall had gifted Dumbledore's Pensieve to Harry soon after the war. The Headmistress had claimed that Albus would have wanted him to have it. Procuring the vial of memories, Harry deposited them safely back into the swirling basin, where they belonged.