Moroccan and hunger

And Jabir al-Maghribi said: “Whoever saw that he was hungry, then he ate, and if the eating was with desire and it was good, then it indicates constant repentance, and if the eating was not good, then he repents and does not continue .”