The book is the volume of five wizarding fairy tales left to Potter 's friend Hermione Granger by headmaster Albus Dumbledore in the seventh and last Potter book , " Harry Potter And The Deathly Hallows , " which came out in July .