Raise both hands and should recite,

اَللّهُمَّ حَوَالَيْنَا وَلَا عَلَيْنَا

Allahumma Hawalaina va laa ‘Alaina.

Meaning:
O Allah, let the rain fall around us and not upon us.
(Book: Bukhari 933, 1015, 1020, 1021, 1033, 6093, 6342)

OR

اَللّهُمَّ عَلَى الآكَامِ وَالْجِبَالِ وَالآجَامِ وَالظّرَابِ وَالأَوْدِيَةِ وَمَنَابِتِ الشَّجَرِ

Allâhumma ‘alâl âakâmi wal jibaali wal ajaami wa dhirâbi wal awdiyati wa manaâbiti sh-shajari.

Meaning:
O Allah! Round about us and not on us. O Allah! On the plateaus, on the mountains, on the hills, in the valleys and on the places where trees grow.
(Book: Bukhari 1013, 1016)

OR

اَللّهُمَّ عَلَى رُءُوْسِ الْجِبَالِ وَالآكَامِ وَبُطُونِ الأَوْدِيَةِ وَمَنَابِتِ الشَّجَرِ

Allahumma ‘ala ru oosil jibali wal âakâmi wa buthoonil awdiyati wa manaâbiti sh-shajari

Meaning:
O Allah, on the tops of the mountains and hills, in the bottom of the valleys and where the trees grow.' So (the rain) was lifted from Al-Madinah like a garment being removed.
(Book: Bukhari 1017)