Sen. Lindsey Graham, R-S.C., took a shot at fellow Republican Sen. Rand Paul of Kentucky for suggesting that the U.S. withdraw troops from Afghanistan, which he said would save enough money to give service members a pay raise.

“It appears ‘General’ @RandPaul is at it again. He just called for the immediate withdrawal of all forces from Afghanistan as a way to give the US military a pay raise. Fortunately, only ‘General’ Paul – and the Taliban — think that’s a good idea,” Graham said in a series of tweets Thursday.

“These are serious and dangerous times. President @realDonaldTrump has chosen to listen and follow sound military advice in taking the gloves off when it comes to fighting radical Islam, particularly in Afghanistan,” Graham continued. “I wish Senator Paul would do the same. Last time we ignored Afghanistan we got 9/11. Nearly 3,000 lives lost and billions of dollars spent because we ignored Afghanistan. Never again.”

Graham seemed to be responding to comments Paul made during an interview with Fox News on Thursday afternoon, during which Paul said the Pentagon would have money to boost the pay of all service members if the Trump administration were to withdraw troops from Afghanistan.

“It's time to come home. There is no military victory there,” Paul said. “I said the other day, you guys want to have a parade, let's bring them home from Afghanistan, all 14,000 of them, declare victory. We got the enemy, we killed [Osama] bin Laden.”

Paul also said the country needs to stop trying to nation-build and focus on domestic spending.

“We don't know how to declare victory,” he said. “We continue to fight and fight and fight to try to create a nation and we're not very good at nation building. It's time to come home and do some nation building in our country.”

Many Republicans and President Trump have come out in favor of a bipartisan budget deal rolled out by congressional leaders Wednesday because of the increased funding for the military. The two-year deal boosts spending for defense and non-defense programs by $300 billion.

"The Budget Agreement today is so important for our great Military. It ends the dangerous sequester and gives Secretary Mattis what he needs to keep America Great. Republicans and Democrats must support our troops and support this Bill!" Trump tweeted Thursday.

The increased funding for the military was also praised by Defense Secretary Jim Mattis during Wednesday’s White House press briefing, during which he urged lawmakers to pass the budget deal.

Congress is currently working to pass a continuing resolution to avoid a partial government shutdown, which lawmakers need to pass by midnight. The government spending bill includes an outline of the bipartisan budget deal unveiled Wednesday. It also suspends the debt ceiling for a year.

But Paul is holding up that bill, as he wants a vote on an amendment to restore the budget caps.

“It spends too much money, borrows too much money,” Paul told Fox News. “Actually, we're going to bring back Obama-era deficits. I was elected to combat Obama-era deficits. I remember running for office and saying ‘We're going to have trillion dollar annual deficits.’ That's what we're going to have this year. So now it's Republicans in charge, busting all the spending caps. The Democrats are complicit. Both parties, the establishment, want to spend more money.”