'Aishah (May Allah be pleased with her) reported:
I asked the Messenger of Allah (ﷺ) about pestilence and he said, "It is a punishment which Allah sends upon whomsoever He wills, but Allah has made it as a mercy to the believers. Anyone who remains in a town which is plagued with pestilence maintaining patience expecting the reward from Allah, and knowing that nothing will befall him other than what Allah has foreordained for him, he would receive a reward of Shaheed".[Al-Bukhari].
Arabic/English book reference: Book 1, Hadith 33