That depends. If you quit with less than 72 hours notice, he has 72 hours to give you your final check. If you quit with 72 hours notice or more, or if you are let go for any reason, he has to give you your final check immediately.
Note to other posters: this is state specific law. The above applies only in California. YMMV.