Two students at North Babylon High School were taken to a hospital for observation Friday morning after drinking bad-tasting water from a bottle in class, officials said.

Suffolk County police said the students were taken to the hospital as a precaution after they “drank water with an unknown substance” from a container that had previously contained paint. The students were later released, “with no medical conditions related to this incident,” the district said.

The students were “alert and responsive” when they were taken to Good Samaritan Hospital in West Islip at 8:50 a.m. after experiencing elevated blood pressure and heart rates, Glen Eschbach, the North Babylon superintendent of schools, said in a statement.

advertisement | advertise on newsday

VideoUnknown liquid sickens 2 N. Babylon students

District officials accompanied the students to the hospital and contacted their parents, according to the statement.

“It is unclear at this time if this was a prank, and the contents of the bottle are still under investigation,” the district said.