It was narrated that Hudhayfah (may Allah be pleased with him) said: The Prophet Muhammad (blessings and peace of Allah be upon him) said: “Whoever fasts one day, seeking the Countenance of Allah, and his life ends with that, will enter Paradise.”
Ahmad (no. 22235)
Al-Mannaawi (may Allah have mercy on him) said: The words “If a person’s life ends with a day of fasting” mean: if a person’s life concludes with a day of fasting, in the sense that he dies when he is fasting or after breaking his fast.
The words “will enter Paradise” mean: with those who enter it first, or without prior punishment.
End quote from Fayd al-Qadeer Sharh al-Jaami‘ as-Sagheer (6/160)