Sahih al-Bukhari, Book 30, Hadith 54 (Bukhari 1876)

Narrated Anas bin Malik:

We used to travel with the Prophet (ﷺ) and neither did the fasting persons criticize those who were not fasting, nor did those who were not fasting criticize the fasting ones.