Sunan Abi Dawud, Book 5, Hadith 70 (Abu Dawud 1320)

Hudhaifah said:

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