Abdullah bin Masud reported,

The Prophet ﷺ said, "The best of people are my generation, then those who follow them, then those who follow them. Then there will come people whose testimony races ahead of their oath and whose oath races ahead of their testimony."Ibrahim said, "They used to strike us for giving testimony and making oaths."

Bukhari 2652

Sahih

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

عن عبد الله رضي الله عنه

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

البخاري 2652صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Testimonies
Chapter
Refusing to testify to an unjust testimony when called upon
Numbering
Darussalam 2652
Bukhari 2652