From Sahih Bukhari (Hadith 1018):
Narrated Anas bin Malik:A man complained to the Prophet (ﷺ) about the destruction of livestock and property and the hunger of the offspring. So he invoked (Allah for rain. The narrator (Anas) did not mention that the Prophet (ﷺ) had worn his cloak inside out or faced the Qibla
Reference: Bukhari 1018