Narrated Abu Huraira:
Allah's Messenger (ﷺ) was presented with two cups one containing wine and the other milk on the night of his night journey at Jerusalem. He looked at it and took the milk. Gabriel said, "Thanks to Allah Who guided you to the Fitra (i.e. Islam); if you had taken the wine, your followers would have gone astray.
USC-MSA web (English) reference: Vol. 6, Book 60, Hadith 232
Arabic reference: Book 65, Hadith 4709