Hadithcore
Al-Adab Al-Mufrad, 390
sahih· Al-Albani

'Abdullah said, "The Prophet, (ﷺ), swore an oath like one of the oaths that people swear and a man of the Ansar said, 'By Allah, it is not an oath by which the Face of Allah Almighty is desired." I said, 'I will tell the Prophet, (ﷺ). I went to him while he was with his Companions and I spoke to him in confidence. It clearly affected him greatly, (ﷺ), and his face changed colour so that I wished that I had not told him. Then he said, 'Musa was injured with greater than that and he endured it.'"

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

References2 variants
In-Book Reference
Book 21, Hadith 6
English Reference
Book 21, Hadith 390