Went to bed with upset stomach, woke up this morning with black toung so what do u thing is wrong?

Regurgitation. Probably some of the food content with the acid from the stomach made its way to your oral cavity and caused the change in color of your tongue.