Inc, the Web retailer known for selling books, said it had paid about $4 million to buy a handwritten, illustrated book of wizardry by Harry Potter author J.K. Rowling.

Sotheby's on Thursday held an auction for the book called The Tales of Beedle the Bard, which was mentioned in the last Potter book as having been left to Harry's friend Hermione by their teacher, Albus Dumbledore.

London dealer Hazlitt, Gooden and Fox had the winning bid of 1.95 million pounds ($3.98 million) on behalf of

All proceeds from the sale will go to the Children's Voice, a charity Rowling co-founded in 2005 to help vulnerable children across Europe.

There are just seven copies of The Tales, bound in brown Moroccan leather and decorated in silver and moonstones. Rowling gave six copies of the book to people closely connected to the Harry Potter books and auctioned off the seventh.

'The Tales of Beedle the Bard' is really a distillation of the themes found in the Harry Potter books, Rowling wrote in the sale catalog.

Of the five stories in the 157-page book, only one, The Tale of the Three Brothers, is told in the Potter novels. It appears in the final Potter book, Harry Potter and the Deathly Hallows. has posted several pictures of the book -- which it handles with white gloves -- and a review of one tale called The Wizard and the Hopping Pot on the Web site The company plans to post reviews of all five tales.

Even before establishing her charity, Chief Executive Jeff Bezos said in a statement late on Thursday, J.K. Rowling had done the world a rare and immeasurably valuable service -- enlarging forever our concept of the way books can touch people -- and in particular children -- in modern times.

(Reporting by Emily Chasan; Editing by Lisa Von Ahn)