Al-Ilmam bi-Ahadith al-Ahkam 373
وَعَن جَابر بن عبد الله رَضِيَ اللَّهُ عَنْهما قَالَ: " بَينا نَحن (نصلي) مَعَ النَّبِي ﷺ إِذْ أَقبلت عير تحمل طَعَاما فالتفتوا إِلَيْهَا، حَتَّى مَا بَقِي مَعَ النَّبِي ﷺ إِلَّا اثْنَي عشر رجلا، فَنزلت هَذِه الْآيَة: {وَإِذا رَأَوْا تِجَارَة أَو لهوا انْفَضُّوا إِلَيْهَا وَتَرَكُوك قَائِما} الْجُمُعَة - ١١ . لفظ البُخَارِيّ فيهمَا.
And from Jabir ibn ʿAbdullah, may Allah be pleased with them both, who said: "While we were (praying) with the Prophet ﷺ, a caravan carrying food arrived, and they turned towards it, until only twelve men remained with the Prophet ﷺ. Then this verse was revealed: And when they see some trade or amusement, they rush off to it and leave you standing (al-Jumuʿah 62:11)." The wording in both is al-Bukhari's.