Hadithcore
Sahih Muslim, 2403 e
sahih

Sa'id b. al-Musayyib reported Abu Musa Ash'ari having said that Allah's Messenger (ﷺ) set out one day to the suburbs of Medina for reliev- ing himself. I followed his steps. The rest of the hadith is the same. Ibn Musayyib said:

I concluded (from the manner of their sitting) the (order) of their graves. (The three) would be together (the graves of the Prophet, Hadrat Abu Bakr and Hadrat Umar) and that of 'Uthman would be separate (from them).

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

References2 variants
In-Book Reference
Book 44, Hadith 46
USC-MSA web (English) reference
Book 31, Hadith 5912 (deprecated numbering scheme)