In Harry Potter and the Half-Blood Prince (Ch. 27), **Albus Dumbledore** disarms Draco Malfoy atop the Astronomy Tower—taking his wand (hawthorn, unicorn hair, 10").
In Deathly Hallows (Ch. 23), Harry **wrestles Draco's wand from him** at Malfoy Manor. This wins its allegiance—making Harry master of the Elder Wand (since Draco had mastered it by disarming Dumbledore).
Both "took" it at different times for different reasons. The wand's allegiance chain: Gregorovitch → Grindelwald → Dumbledore → Draco (disarm) → Harry (physical capture).