The NYPD has found a 2-year-old girl more than 5 miles from where she went missing after her father abandoned her with a friend to commit a crime, officials said.

Cops learned about the missing toddler around 3:40 p.m. Thursday when they picked up her dad for a burglary.

“He said his child was given to a friend of his and we’re in the process of looking for that child,” a police spokesman said.

The girl, last seen at around 1:30 p.m. at West 185th St. and Broadway in Washington Heights, was found a few hours later in Yonkers, police said, adding they believe the dad’s friend drove the tot there.

The dad, whose name wasn’t immediately released, was picked up for a burglary at 501 Bennett Ave. He told cops he left his daughter with a male friend, police said.

The father is in custody. No other details were immediately available.