A man was arrested on a charge of attempted murder after pushing a commuter in front of an oncoming train because he hates white people, according to police in New York.

The New York Police Department said that they have arrested 51-year-old Gary Weeks of Queens, after being accused of pushing the 28-year-old white commuter in front of the oncoming train and spitting at a police officer.

Weeks, who is black, was charged with one count of attempted murder as a hate crime.

According to the police investigation, the incident unfolded on Monday around 1:00 p.m., at the train station on 125th Street and Lexington Avenue.

Weeks approached the 28-year-old man as he waited for the number 4 train to arrive. Weeks told the victim that he does not like white people.

Weeks then grabbed the victim and pushed him towards the train tracks. The victim was able to break free with the help of a good Samaritan.

Weeks continued to be violent after police arrived. While being detained, Weeks spat in the face of a police officer.