Whoever eats or drinks forgetfully while fasting, whether in an obligatory or voluntary fast, should continue their fast, for it is Allah who has provided them with food and drink. There is no difference between obligatory and voluntary fasting in this ruling.