Dr Zakir Naik was asked whether it is allowed to taste food while cooking and whether it will break the fast or not?
He explained that tasting food doesn’t break the fast as it was narrated Ibn ‘Abbaas who said: There is nothing wrong with tasting what is being cooked or whatever. (Narrated by al-Bukhaari)
But Dr. Zakir Naik further said that it is not allowed to swallow it, if it is swallowed then the fast will break. That’s why many scholars claim it is Makrooh to taste food, only in certain conditions the food should be tasted.
The necessity occurs when you have to check the food to know whether it is salty or sweet, etc. Even during these necessities the food should not be swallowed.
Mufti Muhammad Akmal also said the same but emphasized that food should only be tasted at the time of cooking if someone fears from the husband that he will become angry over the taste of food.