The Messenger of Allah (ﷺ) drank some milk and he did not rinse his mouth nor did he perform ablution, and he offered the prayer.
Sunan Abi Dawud Book 1, Hadith 197