Umar bin Khattab reported,

I said, "There is no blame upon you for shortening the prayer if you fear that those who disbelieve may harm you" [Nisa 4:101], yet the people are now safe.He replied, "I wondered about the same thing that puzzled you, so I asked the Messenger of Allah ﷺ about it, and he said, 'It is a charity that Allah has bestowed upon you, so accept His charity.'"

Ibn Majah 1065

Sahih

حدثنا أبو بكر بن أبي شيبة حدثنا عبد الله بن إدريس عن ابن جريج عن ابن أبي عمار عن عبد الله بن بابيه عن يعلى بن أمية قال

سألت عمر بن الخطاب

قلت ليس عليكم جناح أن تقصروا من الصلاة إن خفتم أن يفتنكم الذين كفروا وقد أمن الناس فقال عجبت مما عجبت منه فسألت رسول الله ﷺ عن ذلك فقال صدقة تصدق الله بها عليكم فاقبلوا صدقته

ابن ماجه 1065صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Establishing prayer and the sunnah regarding it
Chapter
Shortening prayer during travel
Numbering
Darussalam 1065
Ibn Majah 1065