I just looked up Lortab in a pill identifier, and it is oval and white with green specks. Also, one of the side effects is nausea.
So, I think you did take Lortab, and then it either irritated your stomach, or you got nauseous because of something you ate or a run of the mill stomach bug. You'll be ok!