We used to consider this part of the Quran until there was revealed "Rivalry in worldly increase distracts you" [Takathur 102:1].
كنا نرى هذا من القرآن حتى نزلت: {ألهاكم التكاثر}.
Bukhari narrated it in the chapter on Riqaq (6440), saying, Abu Walid said to us, Hammad bin Salama narrated to us, from Thabit, from Anas, from Ubayy bin Kaab, and he related it.His statement "said to us" carries the ruling of a connected chain, because Abu Walid is among his teachers.Ubayy's statement, "This is from the Quran," refers to the hadith of Anas bin Malik that the Messenger of Allah ﷺ said, "If the son of Adam had a valley of gold, he would love to have two valleys, and nothing will fill his mouth except dust, and Allah forgives whoever repents." Bukhari narrated it in the chapter on Riqaq (6439), and Muslim in the chapter on Zakat (1048), both from the hadith of Ibn Shihab, who said, Anas bin Malik informed me, and he related it.Ubayy bin Kaab Khazraji Ansari was among the reciters of the companions. His statement, "until "That which distracts you is competition in worldly increase" was revealed," makes clear that it was revealed in Madinah.Qurtubi's statement, "Bukhari holds the view that it is a Madinan surah," should be understood in light of his citing the hadith of Ubayy bin Kaab Khazraji Ansari.