(Scott Olson/Getty Images)

A man who was shot over the weekend in the Riverdale area of Prince George’s County told witnesses the name of the person who attacked him moments after he was hit, police said.

On Monday, police announced the arrest of a man in the killing.

Officers called to a shooting at about 7:45 p.m. Saturday in the 6000 block of Patterson Street found Curtis Mosley, 40, of Hyattsville, suffering from gunshot wounds, Prince George’s County police said.

Mosley told witnesses moments after the shooting the name of the person who had shot him, police said. Mosley was then taken to a hospital, where he died hours later.

James J. Young, 39, of Temple Hills, was arrested Monday in the District and charged with first- and second-degree murder, police said.

Detectives are investigating a motive for the shooting, but police said Young and Mosley were acquaintances.

Young is awaiting extradition to Prince George’s.