When anything distressed the Prophet (ﷺ), he prayed.

Sunan Abu Dawud Book 5 Hadith 70

Sunan Abu Dawud #1319

Prayer (Kitab Al-Salat): Voluntary Prayers 5:70

Hudhaifah said:

When anything distressed the Prophet (ﷺ), he prayed.

Chapter: The Time That The Prophet (saws) Would Pray At Night

Grade: Hasan (Al-Albani)