The iPhone 6S and 6S+ are quite water resistant, but the earlier models are much more prone to water damage.
That being said, I had an old Motorola flip phone about 10 years ago that I dropped into the toilet. After washing it with soap and water and letting it dry, it worked perfectly, so only time will tell. Keep us posted.
Also, what kind of iPhone was it?