Ibrahim b. Sa'id al-Jauhari has narrated this hadith with the same words in addition to these. The Messenger of Allah (may peace and blessings be upon him) was asked as to who amongst the Muslims is better, and the rest of the hadith was narrated like this.
سُئِلَ رَسُولُ اللَّهِ ﷺ أَىُّ الْمُسْلِمِينَ أَفْضَلُ فَذَكَرَ مِثْلَهُ