Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:3347al-Ḥakam b. al-Mubārak > ʿAbd al-ʿAzīz > Ibn Muḥammad > Mūsá > Ibn ʿUqbah > Nāfiʿ > a man Jāʾ > Ibn ʿUmar

[Machine] Indeed, a man advised me and gave me a camel for the sake of Allah, and it is not a time for going out for battle, so should I use it for Hajj? Ibn Umar replied, "Hajj and Umrah are for the sake of Allah."  

الدارمي:٣٣٤٧حَدَّثَنَا الْحَكَمُ بْنُ الْمُبَارَكِ أَنْبَأَنَا عَبْدُ الْعَزِيزِ هُوَ ابْنُ مُحَمَّدٍ عَنْ مُوسَى هُوَ ابْنُ عُقْبَةَ عَنْ نَافِعٍ أَنَّ رَجُلًا جَاءَ إِلَى ابْنِ عُمَرَ فَقَالَ

إِنَّ رَجُلًا أَوْصَى إِلَيَّ وَجَعَلَ نَاقَةً فِي سَبِيلِ اللَّهِ وَلَيْسَ هَذَا زَمَانًا يُخْرَجُ إِلَى الْغَزْوِ فَأَحْمِلُ عَلَيْهَا فِي الْحَجِّ؟ فَقَالَ ابْنُ عُمَرَ «الْحَجُّ وَالْعُمْرَةُ فِي سَبِيلِ اللَّهِ»