Jami` at-Tirmidhi, Book 8, Hadith 99 (Tirmidhi 780)

Abu Hurairah narrated that:

The Prophet said: "When one of you is invited to eat then let him respond, if he is fasting then let him pray." Meaning: supplicate.