When did Ginny Weasley try to steal the Sword of Gryffindor?

HUNT FOR HORCUXES

Chapter 3

During the summer of 1996, Albus Dumbledore used the sword on the Gaunt family ring. The sword cracked the stone in the ring, thus destroying it as a Horcrux. It still worked as the Resurrection Stone. Dumbledore tried to use it to talk to his deceased relatives, but failed.
The sword 1997
The Sword in Dumbledore's office in 1997

Before he died, Dumbledore entrusted the sword to Harry in his will. However, Rufus Scrimgeour claimed that the sword was not Dumbledore's to give away. The Minister stated that it was a school heirloom, not personal property and refused to give it to Harry. This caused the trio substantial problems. Dumbledore placed an identical copy of the sword in his office, because he knew that the British Ministry of Magic would try to confiscate it and hid the real sword in a hole in the wall behind his portrait. Sure enough, the sword on display in the Headmaster's office was later taken by Rufus Scrimgeour for examination.[3]

When the sword was returned to the Headmaster's office by the Ministry, Dumbledore's Army students Ginny Weasley, Neville Longbottom, and Luna Lovegood attempted to steal it for Harry. The group was caught and punished as a result. Following that incident, Severus Snape passed the counterfeit sword to Bellatrix Lestrange. Bellatrix then stored it in her Gringotts vault alongside Helga Hufflepuff's cup, one of Voldemort's Horcruxes.

HPDH1-3355
Harry reaching for the sword, in a frozen lake, in the Forest of Dean

Upon discovering where Harry and his friends were camping out, Dumbledore's portrait instructed Snape to give Harry the real sword without Harry knowing that it was Snape, in case Voldemort found out through Legilimency on Harry. Snape deposited the real sword in a frozen lake in the Forest of Dean and used his corporeal Doe Patronus to guide Harry to the sword. When Harry tried to retrieve the sword, the Locket of Slytherin closed around his neck and attempted to strangle him, sensing that its destruction was near. Ron Weasley came to Harry's rescue, retrieved the sword from the lake and used it to stab the locket, destroying it.[3]

Skirmish at Malfoy Manor
"Out of the corners of his eyes Harry saw Bellatrix bearing down upon the werewolf, the sword of Gryffindor gripped tightly in her hand, her face waxen."
Bellatrix Lestrange holding the sword while in Malfoy Manor[src]
Later, Harry, Ron, and Hermione were captured by the Death Eaters and sent to Malfoy Manor. Harry and Ron were imprisoned in the cellar along with Luna Lovegood, Dean Thomas, Mr Ollivander and the goblin Griphook while Hermione was being tortured and interrogated by Bellatrix Lestrange. Bellatrix demanded to know where the trio came into the possession of the sword, thinking that they had broke into her vault for it. She summoned Griphook to verify the sword, and at Harry's request, Griphook lied and said that it was a fake.[5]
Break-in of Gringotts Wizarding Bank
DH2 Harry Potter in Bellatrix Lestrange's vault
Harry Potter with the Sword in the Lestrange Vault

When Harry and the rest were saved by Dobby to Shell Cottage, Harry asked for Griphook's assistance to break into Bellatrix Lestrange's vault at Gringotts, as he suspected the Cup of Hufflepuff was hidden within it. Griphook, impressed by Harry's respectful treatment of the house elf, agreed to help on the grounds that he would be given the real sword as payment. Harry agreed reluctantly. When their break-in was discovered, Griphook seized the real sword and ran with it. Afterwards, the goblins were summoned to Malfoy Manor to deliver the news of the Gringotts break-in to Voldemort; in a fit of blind rage, Voldemort murdered all those present for their failure in protecting the vault and the extremely valuable objects inside.[3]

Battle of Hogwarts
"The slash of the silver blade could not be heard over the roar of the oncoming crowd or the sounds of the clashing giants or of the stampeding centaurs, and yet it seemed to draw every eye."
Neville weilding the sword during the final battle[src]
Neville kills Nagini
Neville slays Nagini during the battle with the sword

In the Battle of Hogwarts, the sword reappeared in the Sorting Hat for Neville Longbottom and, while following Harry Potter's orders, he used it to behead Nagini, Voldemort's snake and his last remaining Horcrux with a single stroke of the blade, rendering Voldemort a mortal man once more. The sword was last mentioned lying beside Neville in the Great Hall following the conclusion of the final battle and the end to the Second Wizarding War.[3]

Video