Two women were arrested on Thursday after they recorded a video while taking things from a mosque in Arizona and insulting Islam, which the police said might be considered hate speech.

In the video, which was posted to Facebook on March 4 and shared by several accounts, the women, identified by the police as Tahnee Gonzales, 32, and Elizabeth Dauenhauer, 51, can be seen bringing three children to the Islamic Community Center in Tempe, Ariz., near Phoenix.

“Look at this mosque, this ugly mosque, here in our backyard in America,” Ms. Gonzales said in the video, adding, “This is the infiltration of the Arabic Muslim coming in and destroying America.”

The women can be seen opening an unlocked gate with a “No Trespassing” sign on it, entering a courtyard, collecting pamphlets, removing items from a bulletin board and encouraging the children to do the same.