The results will be watched closely by party whips and MPs’ constituents as many Conservatives were expected to defy the prime minister and vote against her agreement.
This is how the votes stacked up:
To find out how your MP voted, put their name into the search field below.
If you don’t know your MP’s name, you can also search by constituency.
On Wednesday, MPs will vote in a no confidence motion in the government.
Prime Minister Theresa May has welcomed the challenge by Labour leader Jeremy Corbyn.