Sunan an-Nasa'i, Book 25, Hadith 80 (In-Book)

It was narrated from Al-'Irbad bin Sariyah that the Messenger of Allah said: "The martyrs and those who dies in their beds referred a dispute to our Lord concerning those who dies of the plague. The martyrs said: 'Our brothers were killed as we were killed.' And those who dies in their beds said: 'Our brothers dies on their beds as we died.' Our Lord said: 'Look at their wounds; if their wounds; if their wounds are like the wounds of those who were killed then they are of them and belong with them.' And their wounds were like their (the martyrs') wounds."

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

sunnah.com