Abū Saʿīd al-Khudrī reported the Prophet ﷺ speaking about the merit of the Companions:
فَلَوْ أَنَّ أَحَدَكُمْ أَنْفَقَ مِثْلَ أُحُدٍ ذَهَبًا مَا بَلَغَ مُدَّ أَحَدِهِمْ وَلَا نَصِيفَهُ
Were one of you to spend gold equal to Mount Uḥud, it would not reach even one mudd of their spending, nor half of it.
The distinction in merit relates to the Companions' unique association with the Messenger ﷺ and cannot be measured by the quantity of wealth spent alone.