Abdullah bin Masud reported,

The Prophet ﷺ was asked, "Which people are the best?"He replied, "My generation, then those who follow them, then those who follow them. Then there will come a people whose testimony will outrun their oath, and their oath will outrun their testimony."Ibrahim said, "Our elders used to forbid us, when we were young boys, from swearing by testimony or by covenant."

Bukhari 6658

Sahih

حدثنا سعد بن حفص حدثنا شيبان عن منصور عن إبراهيم عن عبيدة

عن عبد الله قال

سئل النبي ﷺ أي الناس خير قال قرني ثم الذين يلونهم ثم الذين يلونهم ثم يجيء قوم تسبق شهادة أحدهم يمينه ويمينه شهادته قال إبراهيم وكان أصحابنا ينهونا ونحن غلمان أن نحلف بالشهادة والعهد

البخاري 6658صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Oaths and vows
Chapter
If one says "I testify by Allah" or "I have testified by Allah"
Numbering
Darussalam 6658
Bukhari 6658