Donald Trump has come out against Alabama’s abortion ban, suggesting in a series of late-night tweets the issue risked dividing Republicans ahead of the 2020 election.

The southern state’s Republican government earlier this week passed America’s most restrictive abortion law, banning procedures in all instances other than when the mother’s health is at risk.

The bill, which does not include exceptions in cases of rape and incest, passed 26-6 in the senate and was later signed into law by Alabama’s Republican governor Kay Ivey.

“As most people know, and for those who would like to know, I am strongly Pro-Life, with the three exceptions – Rape, Incest and protecting the Life of the mother – the same position taken by Ronald Reagan,” Mr Trump tweeted late on Saturday night.

“We have come very far in the last two years with 105 wonderful new Federal Judges (many more to come), two great new Supreme Court Justices, the Mexico City Policy, and a whole new & positive attitude about the Right to Life.

“The Radical Left, with late term abortion (and worse), is imploding on this issue. We must stick together and Win for Life in 2020. If we are foolish and do not stay UNITED as one, all of our hard fought gains for Life can, and will, rapidly disappear!”

Legislation to restrict abortion rights has been introduced this year in 16 states, four of whose governors have signed bills banning abortion if an embryonic heartbeat can be detected.

The Alabama bill goes further, banning abortions at any time. Those performing abortions would be committing a felony, punishable by 10 to 99 years in prison, although a woman who receives an abortion would not be held criminally liable.

Sam Bee offers sex ed lesson to the men behind the new abortion laws

Alabama Republicans hope the law change, which will not take effect for six months and is already facing lawsuits, will ultimately end up being contested in the US Supreme Court.

Republican senator Clyde Chambliss, arguing in favour of the Alabama bill, said the whole point was “so that we can go directly to the Supreme Court to challenge Roe v Wade”, the 1973 landmark decision establishing a woman’s right to an abortion.

Mr Trump has in recent months used the issue of abortion to launch misleading attacks against Democrats, whom he has repeatedly wrongly accused of supporting “executing babies” after birth.

Northern Ireland abortion protest in Westminster Show all 7 1 /7 Northern Ireland abortion protest in Westminster Northern Ireland abortion protest in Westminster Derry Girls cast members Siobhan McSweeney and Nicola Coughlan (right) join MPS and women impacted by Northern Ireland's strict abortion laws PA Northern Ireland abortion protest in Westminster Heidi Allen (second right) joins the protest PA Northern Ireland abortion protest in Westminster A luggage tag on a suitcase, symbolising the women who travel from Northern Ireland to England for terminations PA Northern Ireland abortion protest in Westminster The campaigners march across Westminster Bridge PA Northern Ireland abortion protest in Westminster Counter-protesters Rebecca Morgan (left) and her daughter Helen, one, demonstrate in favour of Northern Ireland's current laws Getty Images Northern Ireland abortion protest in Westminster Protesters supporting Northern Ireland's abortion laws at Parliament Square Getty Images Northern Ireland abortion protest in Westminster Demonstrators pull suitcases to symbolise the women who travel from Northern Ireland to England for a termination AFP/Getty Images

The issue looks set to become a central one in the upcoming 2020 elections, with a number of Democratic presidential candidates having already declared their intention to challenge attempts to outlaw abortions.