Hadith 346
من اصابه قيء او رعاف او قلس او مذي فلينصرف فليتوضا
"If someone vomits (during prayer), or has a nosebleed, or something from inside the stomach reaches the mouth, or experiences the emission of madhiy (pre-seminal fluid), then he should leave (the prayer) and perform ablution."