Al-Ilmam bi-Ahadith al-Ahkam 559
وَعند الْأَرْبَعَة عَن صلَة بن زفر، قَالَ: كُنَّا عِنْد عمار بن يَاسر، فَأَتَى بِشَاة مصلية، فَقَالَ: كلوا، فَتنَحَّى بعض الْقَوْم فَقَالَ: إِنِّي صَائِم، فَقَالَ عمار: من صَامَ الْيَوْم الَّذِي يشك فِيهِ فقد عَصَى أَبَا الْقَاسِم ﷺ . اللَّفْظ لِلتِّرْمِذِي.
And with the four, from Silah ibn Zufar, who said: We were with ʿAmmar ibn Yasir, and a roasted sheep was brought, and he said: "Eat." One of the people moved aside and said: "I am fasting." ʿAmmar said: "Whoever fasts on the day about which there is doubt has disobeyed Abu al-Qasim ﷺ." The wording is at-Tirmidhi's.