Mishkat al-Masabih

Hudhaifa said that when anything distressed the Prophet (ﷺ) he prayed. Abu Dawud transmitted it.

وَعَنْ حُذَيْفَةَ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا حَزَبَهُ أَمْرٌ صَلَّى. رَوَاهُ أَبُو دَاوُد