A Los Angeles high school teacher may soon have enough money to retire on after he was arrested for punching out a student in a video that went viral on social media.

Marston Riley, 64, was arrested and charged with assaulting a student who reportedly called him a racial slur, according to KTLA 5 News.

Riley was seen in a viral video repeatedly punching the teenager who threatened him and threw a basketball at him in a classroom at Maywood Academy High School last month.

The video shows the student throwing the ball at the Riley and asking him, “Why you wisecracking, my n—–?”

Riley was held in jail overnight and released on $50,000 bond.

By Monday, Nov. 12, a GoFundMe campaign had raised over $182,000 for Mr. Riley — far exceeding its original goal of $50,000.

The school district reportedly met with Mr. Riley and the student’s parents “to begin the healing process.”

Cecilia Diaz Jimenez, an employee at Maywood Academy, created a GoFundMe page to assist Riley with his bail and other legal expenses.