Sunan an-Nasa'i, Book 25, Hadith 34 (Nasa'i 3124)

It was narrated that Sahl bin Sa'd said:

"The Messenger of Allah (ﷺ) said: 'Going out before noon or after noon, in the cause of Allah, the Mighty and Sublime, is better than this world and everything in it.'"