Hadithcore
Sahih Muslim, 715 s
sahih

Abd Mutawakkil al-Najl reported from Jabir b. 'Abdullah (Allah be pleased with them) who said:

I accompanied Allah's Messenger (ﷺ) in one of his journeys (the narrator says, he said in Jihad), and he narrated the rest of the hadith, and made this addition: He (the Prophet) said: Jabir, have you received the price? I said: Yes, whereupon he said: Yours is the price as well as the camel; yours is the price as well as the camel.

حَدَّثَنَا عُقْبَةُ بْنُ مُكْرَمٍ الْعَمِّيُّ، حَدَّثَنَا يَعْقُوبُ بْنُ إِسْحَاقَ، حَدَّثَنَا بَشِيرُ بْنُ عُقْبَةَ، عَنْ أَبِي الْمُتَوَكِّلِ النَّاجِيِّ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ سَافَرْتُ مَعَ رَسُولِ اللَّهِ صلى الله عليه وسلم فِي بَعْضِ أَسْفَارِهِ - أَظُنُّهُ قَالَ غَازِيًا - وَاقْتَصَّ الْحَدِيثَ وَزَادَ فِيهِ قَالَ ‏"‏ يَا جَابِرُ أَتَوَفَّيْتَ الثَّمَنَ ‏"‏ ‏.‏ قُلْتُ نَعَمْ ‏.‏ قَالَ ‏"‏ لَكَ الثَّمَنُ وَلَكَ الْجَمَلُ لَكَ الثَّمَنُ وَلَكَ الْجَمَلُ‏"‏ ‏.‏

References2 variants
In-Book Reference
Book 22, Hadith 143
USC-MSA web (English) reference
Book 10, Hadith 3892 (deprecated numbering scheme)