Abu Hurairah reported,

The Messenger of Allah ﷺ said, "There is no one who dies except that he feels regret."They asked, "What is his regret, Messenger of Allah?"He replied, "If he was a doer of good, he regrets not having done more. If he was a wrongdoer, he regrets not having abandoned his wrongdoing."

Tirmidhi 2403

Daif

حدثنا سويد بن نصر أخبرنا ابن المبارك أخبرنا يحيى بن عبيد الله قال سمعت أبي يقول سمعت

أبا هريرة يقول

قال رسول الله ﷺ ما من أحد يموت إلا ندم قالوا وما ندامته يا رسول الله قال إن كان محسنا ندم أن لا يكون ازداد وإن كان مسيئا ندم أن لا يكون نزع

الترمذي 2403ضعيف
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Asceticism
Chapter
Day of Resurrection and the regret of the good-doer and the evil-doer on that day
Numbering
Darussalam 2403
Tirmidhi 2403