Sunan Ibn Majah, Book 24, Hadith 128 (Ibn Majah 2882)

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.