Getty Images

A federal judge has ruled that Nebraska cops must return over $1 million confiscated at a traffic stop from a woman who saved the money $1 at a time during her 15 year career as an exotic dancer.

The money belongs to Tara Mishra, 33, of Rancho Cucamonga, Calif., who began putting aside her earnings when she started dancing at age 18, according to an opinion U.S. District Judge Joseph Bataillon wrote last week. The money was meant to start her business and get out of the stripping business, the judge wrote.

State troopers confiscated the money in March 2012 when they pulled over Rajesh and Marina Dheri, of Montville, N.J., for speeding in Nebraska, according to court documents. The Dheris are friends of Mishra and had been given the cash so they could buy a nightclub in New Jersey. Mishra would own half of the business and the Dheris would own the other half.

Mishra had packaged the money in $10,000 bundles tied with hair bands and placed in plastic bags, and it was stashed in the trunk of the Dheri's rented car, which the Dheris were driving to Chicago. When they were pulled over for speeding, a state trooper asked the Dheris if he could search their vehicle, which they allowed, Bataillon explained.

The state trooper found the money and after suspecting it was drug money took the Dheris into custody, according to the judge's opinion. But police did not find any evidence of drug activity in the car and a K-9 analysis found only trace elements of illegal drugs on the cash, according to Bataillon.

Neither Mishra nor the Dheris could not be reached for comment.

"The government failed to show a substantial connection between drugs and the money," Bataillon wrote in his opinion. "The dog sniff is inconsequential…The court finds the Mishras' story is credible…Ms. Mishra did have control over the money and directed the Dheris to deliver the money to New Jersey for the purchase of the business."

Bataillon ordered that Mishra receive cash or a check in the value of $1,074,000 with interest.