Ibn Abbas on Fasting: Permission to taste food while fasting if needed

Ibn Qudamah reported: Ibn Abbas, may Allah be pleased with him, said, “There is nothing wrong for a fasting person to taste food, vinegar, or something he wants to purchase.”

Ahmad ibn Hanbal said, “I prefer to avoid tasting food, but there is no harm and nothing wrong if it is done.”

Source: al-Mughnī 3/125

عن ابن قدامة قَالَ ابْنُ عَبَّاسٍ رضي الله عنه لَا بَأْسَ لِلصَّائِمِ أَنْ يَذُوقَ الطَّعَامَ وَالْخَلَّ وَالشَّيْءَ يُرِيدُ شِرَاءَهُ

وقَالَ أَحْمَدُ بن حنبل أَحَبُّ إلَيَّ أَنْ يَجْتَنِبَ ذَوْقَ الطَّعَامِ فَإِنْ فَعَلَ لَمْ يَضُرَّهُ وَلَا بَأْسَ بِهِ

3/125 المغني لابن قدامة فصل ذوق الطعام للصائم