On Friday, Chris Brown tweeted: “When u lose something let GOD handle it. . .He Probably has something better planned.”

He can only hope: Brown lost his freedom early Sunday morning, when he was arrested on felony assault charges after allegedly punching a man in front of D.C.’s W Hotel. The 24-year-old singer remains in a jail cell in the Metropolitan Police Department’s 2nd District precinct, and will appear in court Monday.

Which could be a bad day for Brown, who’s still on probation for hitting then-girlfriend Rihanna in 2009.

Brown was in Washington for an appearance Saturday night at the Park nightclub on 14th St. N.W., one of many unofficial parties celebrating Howard University’s Homecoming weekend. Park owner Marc Barnes said Brown was at the club until 2:30 a.m. Sunday and “everything was fine when he was here.”

But two hours later, following an after-party that the singer attended, things seem to have turned ugly.Brown and friend/bodyguard Christopher Hollosy, 35, got into a “physical altercation” with the unidentified man around 4:30 a.m. in front of the hotel, reports our colleague Ann Marimow. The alleged victim was taken to a nearby hospital and later released.

What actually went down is unclear. TMZ reports that two women approached Brown and asked for a photo with him; at the last second, two men jumped into the shot. The singer took offense, allegedly telling one of the men, “I’m not into this gay s—, I’m into boxing” before throwing a punch. The man told TMZ his nose was broken and may require surgery.

A person close to Brown’s camp disputes that account, telling the Post that the picture story is “nonsense” and that the incident started after the man tried to follow the two women onto Brown’s tour bus, leading to an altercation. “That’s what started this,” said the person, who would speak only on condition of anonymity because the investigation is continuing.

D.C. police said there were no weapons involved. The hotel released a statement Sunday saying it was “aware of an incident outside the hotel last night. The hotel was not involved. . .We are unable to provide any further information at this time.”

We don’t know how this will play out in court, but it probably isn’t good, given Brown’s repeated run-ins with the law and his apparent dismissal of the legal process.

There’s his infamous assault on Rihanna the night before the Grammys four years ago, which led to a sentence of 180 days of community service, completion of a year-long domestic violence program, and five years of probation.

Brown was assigned to menial tasks — picking up garbage, scrubbing graffiti — in his native Virginia but police records credited him with work he couldn’t have done because he wasn’t in the Richmond area at the time. L.A. prosecutors went to court, claiming that they could find no evidence that Brown ever finished his required hours, and a judge gave the pop star a do-over of 1,000 hours to avoid going to jail or revoking his probation.

Brown was less than appreciative.

“That’s not a compromise!” he told the Guardian in an interview earlier this month. “Community service, that s— is a b—. . .For me, I think it’s more of a power trip for the DA. I can speak freely now, because I don’t really care what they say about it but as far as, like, the 1,000 extra hours they gave me, that’s totally fricking bananas.”

He also addressed a June 2012 bar fight in New York City which devolved into a bottle-throwing brawl with hip-hop star Drake, and a run-in in February with R&B star Frank Ocean over a L.A. parking spot. Both times, said Brown, he was acting in self-defense.

“People think I just walk around as the aggressor, this mad black guy, this angry, young, troubled kid, but I’m not. I’m more and more laid-back. It’s just that people know if they push a button, it’ll make more news than their music. Attaching themselves to me, good or bad, will benefit them.”

UPDATE: Our colleague Keith Alexander reports that visitors in the courthouse are lining up in front of Courtroom C-10 on Monday afternoon. Onlookers are taking pictures of the lockup list posted on the wall outside the courtroom. The list shows Brown’s name, his lockup number, his charge (assault with significant bodily injury) and his attorney’s name.

View outside the court house:

Rapper Chris Brown is charged with assault after getting into a fight with a man outside the W hotel near the White House. The victim was taken to the hospital. (REUTERS)