Harry Styles was left shaken up after he was robbed at knifepoint on Valentine's Day.

The former One Direction singer, 26, was on a night out in Hampstead in London when he was confronted by a man who threatened him.

The robber pulled out a knife and demanded cash, Mirror Online can exclusively reveal.

He acted quickly and handed over the cash, luckily leaving the musician unharmed.

A source told us: "He actually played it pretty cool, quickly giving the assailant cash, keeping himself and the guy calm and getting the situation over with.

"Understandably though it left him very shaken up afterwards."

(Image: Timmie / SplashNews.com)

The incident occurred just hours before Harry's ex Caroline Flack was found dead at her London home on Saturday February 15.

"Given how Caroline took her own life the next day, the pressures of a new album and a performance at the Brit Awards this evening, it's fair to say this is the last thing poor old Harry needed," the source added.

The Metropolitan Police confirmed the incident to Mirror Online.

A spokesperson said: "Police are investigating reports of a knifepoint robbery in Hampstead.

(Image: Timmie / SplashNews.com)

"Officers were contacted on Saturday, 15 February regarding the incident which happened at 23.50hrs on Friday, 14 February.

"It was reported that a man in his 20s was approached by another man and threatened him with a knife.

"The victim was not injured however, cash was taken from him.

"No arrests and enquiries are ongoing."

Harry is expected to walk the red carpet at tonight's Brit Awards, where he'll also be performing.

He's nominated for two awards - Best British Album for his Fine Line solo debut, and Best British Male Solo Artist.

Harry is yet to break his silence about the tragic death of Caroline.

The robbery follows the news that Harry's homeless stalker swerved jail back in October.

Pablo Tarazaga-Orero was found guilty of stalking Harry after posting cash and notes through his letterbox.

He was handed a restraining order banning him from going to Harry's postcode, going within 250 metres from him, and attending any of his gigs.