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.
كُنَّا نُسَافِرُ مَعَ النَّبِيِّ ﷺ فَلَمْ يَعِبِ الصَّائِمُ عَلَى الْمُفْطِرِ وَلاَ الْمُفْطِرُ عَلَى الصَّائِمِ