A Florida man texted the wrong number. It ended with his arrest.

William Lamberson’s texts about wanting to buy drugs mistakenly went to the Martin County Sheriff’s Office narcotics captain, according to the department.

The Port St. Lucie 29-year-old was charged last week with one count of possession of cocaine with the intent to sell. Court records did not list attorney information for Lamberson.

The messages began innocently enough:

(Martin County Sheriff's Office)
(Martin County Sheriff’s Office)

The captain texted back, “what’s up,” to which Lamberson allegedly responded: “Not much dude wanna smoke so bad u have any green.”

“It turns out, Lamberson’s misdial connected him to someone who knows all too much about illegal drugs,” the sheriff’s office said in a statement. “Unbeknownst to Lamberson, he was mistakenly trying to score with the Captain of the Martin County Sheriff’s Narcotics Unit.”

In the next series of texts, the captain asks Lamberson if he has any connections to get cocaine. “I actually do man. Lol,” Lamberson allegedly responded.

The two continue texting, and the captain asks for a specific amount of cocaine. The two were supposed to meet on Sept. 1, but Lamberson was instead met by narcotics detectives who arrested him, according to the department.

READ MORE:

Two men took selfies on a stolen iPad, leading to their arrest

The Seattle cop who issued most of the city’s weed citations has been reassigned