Mishkat al-Masabih
Jabir reported God’s messenger as saying, “He who runs away from plague like him who runs away from battle, but he who meets it with endurance will have a martyr’s reward." Ahmad transmitted it.
وَعَنْ جَابِرٍ أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ: «الْفَارُّ مِنَ الطَّاعُونِ كَالْفَارِّ مِنَ الزَّحْفِ وَالصَّابِرُ فِيهِ لَهُ أَجْرُ شَهِيدٍ» . رَوَاهُ أَحْمد
Reference