The Messenger of Allah ﷺ said, "A morning's journey or an evening's journey in the cause of Allah is better than the world and all that is in it."
حدثنا عبد الله بن الحارث حدثنا الضحاك بن عثمان عن الحكم بن ميناء
أن رسول الله ﷺ قال غدوة في سبيل الله أو روحة خير من الدنيا وما فيها
Its isnad is sahih. Abu Hakam bin Mina is Hakam bin Mina, the Ansari, their freedman, a trustworthy narrator. The hadith was narrated by Bukhari 8/145, in the Book of Raqaiq, chapter on the description of Paradise and Hellfire, from Anas, and by Muslim 3/1500 no. 1882, Tirmidhi 4/180 no. 1649, and Ibn Majah 2/921 no. 2755.