Sunan an Nasai 2053
The Book of Funerals
أَخْبَرَنَا إِبْرَاهِيمُ بْنُ الْحَسَنِ، قَالَ حَدَّثَنَا حَجَّاجٌ، عَنْ لَيْثِ بْنِ سَعْدٍ، عَنْ مُعَاوِيَةَ بْنِ صَالِحٍ، أَنَّ صَفْوَانَ بْنَ عَمْرٍو، حَدَّثَهُ عَنْ رَاشِدِ بْنِ سَعْدٍ، عَنْ رَجُلٍ، مِنْ أَصْحَابِ النَّبِيِّ صلى الله عليه وسلم أَنَّ رَجُلاً قَالَ يَا رَسُولَ اللَّهِ مَا بَالُ الْمُؤْمِنِينَ يُفْتَنُونَ فِي قُبُورِهِمْ إِلاَّ الشَّهِيدَ قَالَ " كَفَى بِبَارِقَةِ السُّيُوفِ عَلَى رَأْسِهِ فِتْنَةً " .
It was narrated from Rashid bin Sa'd, that a man among the Companions of the Prophet said:"O Messenger of Allah, why will the believers be tested in their graves except the martyr?" He said: "The flashing of the swords above his head is trial enough
Grading: Abu Ghuddah: Sahih · Al-Albani: Sahih · Zubair Ali Zai: Isnaad Sahih
Text from the public-domain hadith-api dataset. Numbering follows that dataset and can differ by a few from some printed editions — check the wording, not only the number.