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)
كَانَ أَبُو طَلْحَةَ لَا يَصُومُ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ مِنْ أَجْلِ الْغَزْوِ فَلَمَّا مَاتَ النَّبِيُّ ﷺ لَمْ أَرَهُ مُفْطِرًا إِلَّا يَوْمَ الْفِطْرِ أَوْ يَوْمَ النَّحْرِ