Valmiki Ramayana Bala Kanda Sarga 43 Shloka 27
Original Shlokaशापात्प्रपतिता ये च गगनाद्वसुधातलम्।।1.43.27।। कृत्वा तत्राभिषेकं ते बभूवुर्गतकल्मषा:।
1 source checked for this shloka
ये च those, शापात् due to the curse, गगनात् from the sky, वसुधातलम् earth, प्रपतिता: had fallen, ते they, तत्र there, अभिषेकम् bath, कृत्वा having taken, गतकल्मषा: बभूवु: were absolved of their sins.
Those cursed to fall from heaven to earth were absolved of their sins after bathing there (in the waters of Ganga).