صحيح مسلم·كتاب المساجد ومواضع الصلاة
Chapter: It is disliked to offer salat in the presence of food that one wants to eat. It is disliked to offer salat while restraining the urge to relieve oneself, and so on
باب كَرَاهَةِ الصَّلاَةِ بِحَضْرَةِ الطَّعَامِ الَّذِي يُرِيدُ أَكْلَهُ فِي الْحَالِ وَكَرَاهَةِ الصَّلاَةِ مَعَ مُدَافَعَةِ الأَخْبَثَيْنِ.
This hadith is listed as number 1243 in Maktaba Shamila