Jami` at-Tirmidhi, Book 36, Hadith 101 (Tirmidhi 2473)

Abu Hurairah narrated that the Prophet(s.a.w) said:

"There is no one who dies but he shall regret." They said: "What shall he regret over O Messenger of Allah?" He said: "If he was a good doer, he regrets that he did not do more, and if he was an evil doer, he regrets that he did not stop."