Hagrid did not die in the Deathly Hallows. After being captured he was held in the Forbidden Forest until Harry came to surrender himself toLord Voldemort. Hagrid yelled at Harry to run while he still can, but Harry stayed since he came to sacrifice himself to Lord Voldemort in order to s...