BANGOR, Maine — A 28-year-old Bangor man who asked a friend for a ride Sunday night got more than he bargained for when two men arrived with the friend and attempted to rob him, Sgt. Paul Edwards said Monday.

The victim called a female friend for a ride to the store just after 9 p.m. and when the friend arrived, she was a passenger in a truck driven by Connie Toothaker, 21, of Carmel, according to police. Jacob Hurd, 22, of Charleston and Matthew Gormely, 24, of Brewer, also were with the two women.

Shortly after the victim got into Toothaker’s truck, it pulled over and the victim got out to let a passenger out.

“He said he was attacked by the men in the truck and that they attempted to take property from his person but [were] unsuccessful,” Edwards said. “The truck then sped off,” leaving the victim with some bumps and scratches.

“There was some attempt to go through his pockets but they never got his wallet,” he said.

An unidentified man followed the truck and helped lead police to its whereabouts.

It was stopped by Officer Tim Shaw on the corner of Birch and Pearl streets and Toothaker, Hurd and Gormely all were arrested around 9:45 p.m. Sunday. Gormely and Hurd both face felony attempted robbery charges, which carry a penalty of up to five years in prison and a fine of $5,000 if convicted. Hurd also faced a bail violation charge. Toothaker was charged with operating after suspension and bail violation. All three were taken to Penobscot County Jail and remained there at noon Monday, a jail official said.

The other woman in the vehicle was not charged.