In the first book, Voldemort (through Professor Quirrell) promised Hagrid a dragon egg in exchange for information about how to get past Fluffy, the three-headed dog guarding the Sorcerer's Stone. This led to Hagrid winning Norbert the Norwegian Ridgeback dragon egg.