Maqil bin Muqarrin al-Muzani asked Ibn Masud, "Did you hear the Messenger of Allah ﷺ say, 'Regret is repentance'?"He replied, "Yes."
حدثنا وكيع وعبد الرحمن المعنى وهذا لفظ وكيع حدثنا سفيان عن عبد الكريم الجزري عن زياد بن أبي مريم
أن أباه معقل بن مقرن المزني قال لابن مسعود أسمعت رسول الله ﷺ يقول الندم توبة قال نعم
Its isnad is sahih. It is a repetition of 4016, and we have discussed it in detail at 3568, where this isnad was also referenced. (4124)