If you find this yellow stuff in your eyes only when you wake up after a night's sleep, it means nothing. If yellow stuff keeps appearing in your eyes during the day, you have an eye infection and need to see your doctor for some antibiotic eye drops.