Jama' due to rain, is it right/acceptable?

Salams, I went to the mosque for maghrib however they prayed jama' with isya due to rain. I have never heard of it before and want to ask if its allowed/acceptable. Pls provide a hadith or a statement in the quran or a link to justify ure ans. Thanks
2 answers 2