04/28/2007 AT 03:00 PM EDT
Britney Spears was pulled over by Beverly Hills police for allegedly speeding but was let off with a warning, authorities say.
The pop star was driving along Sunset Boulevard when she was stopped at 8:45 p.m. Friday. "She was pulled over for speeding," Beverly Hills police Sgt. Mike Foxen tells PEOPLE. "She was warned about her speed and let go. She was not cited."
Earlier in the day, Spears had done some intense workouts at the Millennium Dance Studio, getting into shape to return to performing. She also has been in the recording studio with music producer JR Rotem, whom she briefly dated.
"Everyone talked about how happy she looked to be back in the studio," says a source. "She came in focused from the start. She's always been a pro when it comes to her music."
Spears's driving last made news when she was photographed in 2006 driving with her baby son Sean Preston in her lap. Spears later said she made a mistake