Not sure where you're getting this from, but it's suspiciously similar to this commentary by Islamic Caliph Omar, where he was talking about the books in the Library of Alexandria.
"Alexandria was captured by the Muslim army of 'Amr ibn al-'As. Several later Arabic sources describe the library's destruction by the order of Caliph Omar.[94][95] Bar-Hebraeus, writing in the thirteenth century, quotes Omar as saying to Yaḥyā al-Naḥwī: "If those books are in agreement with the Quran, we have no need of them; and if these are opposed to the Quran, destroy them."