Ibn Abbas (RA) reported Allah's Messenger (ﷺ) as saying: If there were for the son of Adam ؑa valley full of riches, he would long to possess another one like it. And Ibn Adam ؑdoes not feel satiated but with dust. And Allah returns to him who returns (to HiM). Ibn Abbas (RA) said: I do not know whether it is from the Qur'an or not; and in the narration transmitted by Zuhair it was said: I do not know whether it is from the Qur'an, and he made no mention of Ibn Abbas (RA) .
Narrated Ibn `Abbas: I heard Allah's Apostle saying, "If the son of Adam had money equal to a valley, then he will wish for another similar to it, for nothing can satisfy the eye of Adam's son except dust. And Allah forgives him who repents to Him." Ibn `Abbas said: I do not know whether this saying was quoted from the Qur'an or not. `Ata' said, "I heard Ibn AzZubair saying this narration while he was on the pulpit."
Maulana Dawood Raz
Hadith Commentary: Before the revelation of Surah At-Takathur, this phrase continued to be recited like the Qur'an. Then, after the revelation of Surah At-Takathur, its recitation was abrogated. The subject matter is the same: it is an exposition of man's greed and covetousness. Further clarification is present in the following ahadith.
Source: Sahih Bukhari: Commentary by Maulana Dawood Raz, Page: 6437