I heard the Prophet ﷺ say, "A space in Paradise the size of a whip is better than the world and everything in it. A morning's journey or an evening's journey in the path of Allah is better than the world and everything in it."
سمعت النبي ﷺ يقول: موضع سوط في الجنة خير من الدنيا وما فيها، ولغدوة في سبيل الله أو روحة خير من الدنيا وما فيها.
Bukhari narrated it in the Book of Raqaiq (6415), and Muslim in the Book of Imarah (1881), both through the route of Abdul-Aziz bin Abu Hazim, from his father, from Sahl bin Saad Saadi, who said, then he related it. The wording given is that of Bukhari, while Muslim confined himself to the last sentence of the hadith.