Sahih al-Bukhari, Book 34, Hadith 12 (Bukhari 1984)

Narrated Jabir:

While we were offering the prayer with the Prophet (ﷺ) a caravan carrying food came from Sham. The people looked towards the caravan (and went to it) and only twelve persons remained with the Prophet. So, the Divine Inspiration came; "But when they see some bargain or some amusement, they disperse headlong to it." (62.11)