Sahih Bukhari – Hadith No : 1018

Narrated Anas bin Malik: I p 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.

Hadith In Arabic Text :

حدثنا الحسن بن بشر، قال حدثنا معافى بن عمران، عن الأوزاعي، عن إسحاق بن عبد الله، عن أنس بن مالك، أن رجلا، شكا إلى النبي صلى الله عليه وسلم هلاك المال وجهد العيال، فدعا الله يستسقي، ولم يذكر أنه حول رداءه ولا استقبل القبلة‏.‏

Chapter : Invoking Allah for Rain (Istisqaa) – كتاب الاستسقاء