Abdullah bin Umar reported,

The Messenger of Allah ﷺ forbade traveling with the Quran into enemy territory, out of fear that it might fall into the enemy's hands.

Ibn Majah 2879

Sahih

حدثنا أحمد بن سنان وأبو عمر قالا حدثنا عبد الرحمن بن مهدي عن مالك بن أنس عن نافع

عن ابن عمر

أن رسول الله ﷺ نهى أن يسافر بالقرآن إلى أرض العدو مخافة أن يناله العدو

ابن ماجه 2879صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Jihad
Chapter
Prohibition of traveling with the Quran to enemy lands
Numbering
Darussalam 2879
Ibn Majah 2879