Narrated Ya'la bin Umayyah:
"I said to 'Umar [bin Al-Khattab]: 'Allah said: That you shorten the Salat if you fear and the people are safe (4:101).' So 'Umar said: 'I wondered about that just as you have wondered. So I mentioned that to the Messenger of Allah (ﷺ), and he said: "It is charity which Allah has given to you, so accept His charity." (JA)
English reference (JA): Vol. 5, Book 44, Hadith 3034 (JA)
Arabic reference (JA): Book 47, Hadith 3308 (JA)