The police neighbor's Black man and his Hispanic neighbor for standing outside their homes in Sacramento, California.

Ed Dowdy, who is Black, told local news that he had asked if he could borrow his neighbor's phone to call a locksmith. Dowdy had locked his keys and cell phone in his car.

"We were just having a conversation right here," said Dowdy's neighbor, Omar, in the spot the pair were standing as the cops approached them. The Sacramento County Sheriff's Deputy approached them, asking both men if either of them were on parole.

"That kind of surprised me. It kind of shocked us like, why would he even ask that?" Omar said. "Like do we look like criminals or something? And to me, I feel like he made up in his mind who we were at that moment."

Omar is a business owner, and Dowdy is a war veteran. Neither were on parole.

The officer would not allow the men to go inside of their homes and get their ID.

"I told him, 'I've got my ID in the house. My wife and kids are inside. Do you want me to go get it? I can go get it,'" he told FOX40. "He said, 'No, I'll write it down.' And I even spelled out my name, my last name, gave him my date of birth. He went to go check."

After checking, the officer told Omar that he could not find him in the system. He promptly cuffed and detained them as Omar's surveillance camera recorded the entire incident.

"You're out here, outside of a home where an alarm went off, right? You guys are just standing out here, and your name isn't very good," the deputy can be heard saying in the footage. "Well, I have reasonable suspicion to believe that a crime is being committed, right? So, I can detain people."

Omar's wife later came out of the house and handed the officer his ID. A sergeant showed up to check on the alarm call, and the two men were released.

Sacramento County Sheriff's Office spokesperson Sgt. Tess Deterding released a statement following the incident:

"From a general review of the video it does not appear there is any violation of policy or law. However, the video is insufficient in terms of drawing a conclusion. If these individuals feel the situation was not handled appropriately by Sheriff's Office personnel, we encourage them to contact us so we may gather more information."