In the life-time of the Prophet, Abu Talha did not fast because of the Jihad, but after the Prophet ﷺ died I never saw him without fasting except on ʿId-ul-Fitr and ʿId-ul-Aclha. (Using translation from Bukhārī 2828)
«كَانَ أَبُو طَلْحَةَ لَا يَصُومُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ مِنْ أَجْلِ الْغَزْوِ فَلَمَّا قُبِضَ النَّبِيُّ ﷺ لَمْ أَرَهُ يُفْطِرُ إِلَّا يَوْمَ أَضْحًى أَوْ يَوْمَ فِطْرٍ»