Ayesha reported,

I asked the Messenger of Allah ﷺ about the plague, and he informed me that it is a punishment Allah sends upon whomever He wills, but that Allah has made it a mercy for the believers. There is no one who, when the plague strikes, remains in his town patiently and seeking reward, knowing that nothing will befall him except what Allah has decreed for him, except that he will receive a reward like that of a martyr.

Azami 8112

Sahih

عن عائشة قالت

سألت رسول الله ﷺ عن الطاعون فأخبرني: أنه عذاب يبعثه الله على من يشاء، وأن الله جعله رحمة للمؤمنين، ليس من أحد يقع الطاعون، فيمكث في بلده صابرا محتسبا يعلم أنه لا يصيبه إلا ما كتب الله له إلا كان له مثل أجر شهيد.

الأعظمي 8112صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Martyrs and the rulings on martyrdom
Section
Martyrs other than those killed in the cause of Allah
Numbering
Jami al-Kamil 8112 (2nd edition)
Azami 8112