depends on how often you smoke. but, let's assume you abstained after smoking chronically. It would be a few days (3-5) in the blood and more like 30-60 days in the urine. your fat stores would show positive results, too, if tested, for a long time.

that's not to say a urine test can't be passed before that, without dilution, especially in lighter smokers, but the metabolites remain in the body a loooong time so you can't be too careful with a urine test.