The quote you're likely thinking of is "A book is a mirror: If an ass looks into it, you can't expect an apostle to look out" (in German: "Ein Buch ist ein Spiegel: Siehst du einen Esel hineinsehen, so darfst du nicht erwarten, dass ein Apostel heraussehe").
This quote comes from a letter Goethe wrote to his friend Karl Friedrich Zelter on October 25, 1831.
While he didn't curse any book in particular, this quote expresses his disdain for people who misinterpret or misunderstand literature based on their own limited understanding.