Allah's Messenger (ﷺ) forbade the people to travel to a hostile country carrying (copies of) the Quran. Sahih al-Bukhari Book 56, Hadith 199