وَيُنَزِّلُ عَلَيْكُمْ مِنَ السَّمَاءِ مَاءً لِيُطَهِّرَكُمْ بِهِ
Meaning: He sends down water from the sky to purify you thereby.
The verse explicitly mentions purification as the purpose. Rainwater is therefore, in principle, suitable for ritual purification. Reference: al-Anfal 8:11.