From Sahih Muslim (Hadith 5325):
Anas b. Malik reported:A tailor invited Allah's Messenger (ﷺ) to a meal which he had prepared. Anas b. Malik said: I went along with Allah's Messenger (ﷺ) to that feast. He presented to Allah's Messenger (ﷺ) barley bread and soup containing pumpkin, and sliced pieces of meat. Anas said: I saw Allah's Messenger (ﷺ) going after the pumpkin round the dish, so I have always liked the pumpkin since that day
Reference: Muslim 5325