Amar'e Stoudemire has apologized for hurling an anti-gay slur at a fan on Twitter.

Stoudemire, who plays as a power forward and center for the NBA's New York Knicks, on Saturday fired back at a follower who criticized the Knicks' record.

After Stoudemire tweeted that he had just finished an off-season workout, @Bferrelli, identified by The New York Daily News as Brian Ferrelli, messaged: “@Amareisreal you better come back a lot stronger and quicker to make up for this past season mannnnnn deadasss!!!”

“Fuck you. I don't have to do anything fag,” Ferrelli claimed Stoudemire, 29, wrote in a direct message.

“Just got a DM from @Amareisreal after I told him to step his shit up so the Knicks will get further next season..pussy,” Ferrelli messaged along with a link to a photo of Stoudemire's message.

Stoudemire apologized in a second direct message to the fan.

“I apologize for what I said earlier. I just got off a plane and had time to think about. Sorry bro!! No Excuses. Won't happen again,” Stoudemire messaged.

“He apologized and I accept it,” Ferrelli told The News in a tweet when asked for comment.