Malik was asked how many rakas there were in the prayer
of asking for rain and he said, "Two rakas, and the imam does the
prayer before he gives the khutba. He prays two rakas, and then he
gives a khutba and makes dua, facing the qibla and turning his cloak
inside out. He recites out loud in both rakas, and when he turns his
cloak inside out he puts what is on his right on his left, and what is
on his left on his right, and all the people turn their cloaks inside
out when the imam does so, and face the qibla, sitting."
Anas continued, "Then a man came to the Messenger of
Allah, may Allah bless him and grant him peace, and said, 'Messenger
of Allah, our houses have fallen down, the paths are blocked, and our
flocks are dying.' The Messenger of Allah, may Allah bless him and
grant him peace, said, 'O Allah, (only) the mountain and hill-tops,
the valley bottoms, and the places where trees grow.' "
Anas
added, "It cleared away from Madina like a garment being removed."
Malik said, about a man who missed the prayer of asking for
rain but caught the khutba, and wished to pray in the mosque, or in
his house when he returned, "He is free to do so, or not, as he
wishes."