The Messenger of Allah (ﷺ) combined the noon and afternoon prayers, and the sunset and night prayers at Medina without any danger and rain. He was asked: What did he intend by it ? He replied: He intended that his community might not fall into hardship.
Sunan Abi Dawud Book 4, Hadith 14