William Lamberson, 29, has been charged with possession of cocaine with intent to sell after accidentally texting Florida cop Brian Bergen

A Florida man has been jailed after an investigation police say began when he mistakenly texted a narcotics agent for help finding drugs.

William Lamberson, 29, allegedly sent a message to Captain Brian Bergen, head of the Martin County Sheriff's Narcotics Unit, and asked him where to get some marijuana.

Sensing an opportunity, and fearing what could have happened had Lamberson inadvertently texted a child, Bergen played along for weeks until he eventually nabbed Lamberson on cocaine charges.

Scroll down for video

Oops: Police say William Lamberson, 29, accidentally sent a message to Captain Brian Bergen, head of the Martin County Sheriff's Narcotics Unit, and asked him where to get some marijuana. Weeks of back-and-forth ensued before Lamberson was arrested on cocaine charges

'His first texts were basically address me, 'hey bro, this is Will', what you normally would do,' Captain Bergen told WPEC.

Lamberson asked Bergen where to find some 'green' and explained that the two had met at a 7-11 after the cop expressed his confusion at first.

Nothing came of the exchange until after Bergen later asked, 'You got any hooks for sum blow?'

Lamberson replied that he did: 'I actually do man. Lol.'

Then, on September 1, police went in for the kill and would soon boast on Facebook about the arrest that all but fell in their laps.

Misdial? Lamberson presumably misdialed the number of a drug dealer he'd met at a local 7-11

Nabbed: Sensing an opportunity, and fearing what could have happened had Lamberson inadvertently texted a child, Bergen played along for weeks until he eventually nabbed Lamberson on cocaine charges

'Although a friendly face to face didn't happen overnight, Lamberson continued his electronic dialogue, and eventually, a controlled cocaine transaction was underway,' a post on the Martin County Sheriff's Office reads.

The post continued: 'Lamberson thought he was meeting his “hook up”, so he could sell some cocaine, instead, he was greeted by MCSO’s narcotics detectives.'

Lamberson was arrested on narcotics charges with intent to sell, at which point Martin County officials wrote, it was 'probably a good time to let Mr. Lamberson know, he had the wrong number.'

Lamberson remained held in the Martin County Jail on a $40,000 bond as of Friday.

Bergen (pictured) said he feared what might have happened if Lamberson had dialed a child's number instead of his



