Jami` at-Tirmidhi, Book 49, Hadith 259 (Tirmidhi 3956)

Narrated 'Abdullah bin Mas'ud:

that the Messenger of Allah (ﷺ) said: "The best generation is my generation, then those who follow them, then those who follow them. Then comes a people after that whose swearing precedes their testimony, or whose testimony precedes their swearing."