It was narrated from Ibn ‘Umar that the Messenger of Allah ﷺ used to forbid traveling with the Qur’an to the land of the enemy, lest the enemy gets hold of it.
عَنْ رَسُولِ اللَّهِ ﷺ أَنَّهُ كَانَ يَنْهَى أَنْ يُسَافَرَ بِالْقُرْآنِ إِلَى أَرْضِ الْعَدُوِّ مَخَافَةَ أَنْ يَنَالَهُ الْعَدُوُّ