A hadith like this has been narrated from the Messenger of Allah (ﷺ) on the authority of…

Sahih Muslim Book 5 Hadith 83

Sahih Muslim #559 b

The Book of Mosques and Places of Prayer 5:83

A hadith like this has been narrated from the Messenger of Allah (ﷺ) on the authority of Ibn 'Umar with another chain of transmitters.

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

Grade: Sahih