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