Washington (CNN) President Donald Trump said Friday that Republicans should wait until after the November midterm elections to pass immigration legislation -- undercutting GOP leadership -- but Capitol Hill negotiators say they'll continue working through the weekend on a bill they hope can pass next week despite the tweet.

"Republicans should stop wasting their time on Immigration until after we elect more Senators and Congressmen/women in November," Trump tweeted. "Dems are just playing games, have no intention of doing anything to solves this decades old problem. We can pass great legislation after the Red Wave!"

Trump's comments come as House Republicans have been struggling to wrangle support for a comprehensive immigration bill. On Thursday, Republicans decided to postpone a vote on it for the second time in less than a day. Senate and House leaders have also been trying to find a bill that would end family separations at the border.

In a series of tweets Friday morning, Trump said electing more Republicans in November would result in a comprehensive immigration bill.

"Elect more Republicans in November and we will pass the finest, fairest and most comprehensive Immigration Bills anywhere in the world. Right now we have the dumbest and the worst," he tweeted. "Dems are doing nothing but Obstructing. Remember their motto, RESIST! Ours is PRODUCE!"

Read More