(the wife of the Prophet) that she asked Messenger of Allah ﷺ about plague, and Messenger of Allah ﷺ informed her saying, "Plague was a punishment which Allah used to send on whom He wished, but Allah made it a blessing for the believers. None (among the believers) remains patient in a land in which plague has broken out and considers that nothing will befall him except what Allah has ordained for him, but that Allah will grant him a reward similar to that of a martyr." (Using translation from Bukhārī 5734)
عَنْ عَائِشَةَ زَوْجِ النَّبِيِّ ﷺ أَنَّهَا سَأَلَتِ النَّبِيَّ ﷺ عَنِ الطَّاعُونِ؟ فَأَخْبَرَهَا نَبِيُّ اللهِ ﷺ «أَنَّهُ كَانَ عَذَابًا يَبْعَثُهُ اللهُ عَلَى مَنْ شَاءَ فَجَعَلَهُ رَحْمَةً لِلْمُؤْمِنِينَ فَلَيْسَ مِنْ عَبْدٍ يَقَعُ فِي الطَّاعُونِ فَيَمْكُثُ فِي بَلَدِهِ صَابِرًا مُحْتَسِبًا يَعْلَمُ أَنَّهُ لَنْ يُصِيبَهُ إِلَّا مَا كَتَبَ اللهُ لَهُ إِلَّا كَانَ مِثْلُ أَجْرِ شَهِيدٍ»