"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."
أَنْ يَفْتِنَكُمُ الَّذِينَ كَفَرُوا ) وَقَدْ أَمِنَ النَّاسُ فَقَالَ عُمَرُ عَجِبْتُ مِمَّا عَجِبْتَ مِنْهُ فَذَكَرْتُ ذَلِكَ لِرَسُولِ اللَّهِ ﷺ فَقَالَ صَدَقَةٌ تَصَدَّقَ اللَّهُ بِهَا عَلَيْكُمْ فَاقْبَلُوا صَدَقَتَهُ