Mishkat al-Masabih
Hudhaifa said that when anything distressed the Prophet he prayed.
Abu Dawud transmitted it.