On Wednesday Sangakkara became the first player to score four consecutive ODI centuries and record 500 ODI dismissals, but despite this he believes he is making the right decision.
With Sangakkara having scored 105 not out against Bangladesh, 117 not out against England, 104 against Australia and 124 against Scotland, Sri Lanka captain Angelo Mathews revealed that he had been "on my knees begging" Sangakkara to carry on playing ODIs after the World Cup.
However, Sangakkara is adamant about retiring from ODIs after the tournament.
"Records do matter, I think. I would love to say records never enter my mind, but they do," Sangakkara told the BBC's Test Match Special. "There are certain things that you chase – you try to keep those goals. They are not the only things you chase, but as long as you do the right things those things will fall into place and come along.
"Retirement is not about form, it is about time and place and whether it feels right. It is never about whether you can play or not."
Sangakkara, who made his ODI debut in July 2000, also admitted that time was starting to catch up with him.
"I've been batting and keeping for a long time, it's getting harder and the joints are creaking and aching, but I consider myself lucky to be part of a great team," he said.