The Messenger of Allah (may Allah’s peace and blessings be upon him) forbade traveling with the Qur’an to the land of enemies
Authentic hadithعن عبد الله بن عمر رضي الله عنهما مرفوعاً: نهى رسول الله صلى الله عليه وسلم أن يُسَافَرَ بالقرآن إلى أرض العدو.
‘Abdullāh ibn ‘Umar (may Allah be pleased with him) reported that the Messenger of Allah (may Allah’s peace and blessings be upon him) forbade traveling with the Qur’an to the land of enemies.
Explanation
The Prophet (may Allah's peace and blessings be upon him) forbade taking the Qur’an along when traveling to a land of disbelief, where people do not believe in Islam, lest they might profane it. If it is most likely safe there, it is allowed to take it then.
Source · Narrated by Bukhari & Muslim
From the Hadith Encyclopedia (hadeethenc.com).