But if bounty comes to you from Allāh, he will surely say, as if [i.e., showing that] there had never been between you and him any affection, "Oh, I wish I had been with them so I could have attained a great attainment."1
Translation: Saheeh International (English)
1 The spoils of war. Although having pretended to befriend the believers in support of Allāh's religion, the hypocrite will not be willing to fight except for material gain.
If Allah’s grace of support and gains of war come to you, O Muslims, this person – who lags behind from striving in Allah’s path – says, as if there was friendship or affinity between you and him, ‘If only I was with them in that fight, I would have also gained great success’. Worldly benefits are the only goal of such a person.