As it happened: South Africa v Samoa
The right-wing scored a try in each half as the Springboks overcame a slow start to lead 32-9 at half-time and the red carding of Samoa left-wing Alesana Tuilagi for a stiff arm tackle on the hour mark ended the game as a contest.
However, Habana saw his hopes of a hat-trick dashed 10 minutes from the final whistle when he deliberately knocked on as Samoa threatened to score and spent the rest of the match in the sin bin.
Springbok flyhalf Morne Steyn had a couple of early penalty chances and after planting the first between the posts, the other drifted just left.
Fullback James So'oialo levelled with his first kick at goal and Samoa were unlucky not to go ahead when a brilliant break by flyhalf Tusi Pisi was thwarted by a try-saving tackle from scrumhalf Ruan Pienaar.
Another So'oialo penalty nudged the Pacific islanders in front only for the Springboks to hit back soon after with Habana claiming the first of four first-half tries.
South Africa kicked two penalties to the corner, won the resulting lineouts and when the ball sped along the line, fullback Willie le Roux was up to send Habana over far out.
Steyn, playing on his home ground, converted and also added the extra points after flank Francois Louw touched down as Samoa proved helpless when South Africa launched one of their most potent weapons - the driving maul.
The loss of centre Johnny Leota with concussion and tighthead prop Logovi'i Mulipola to the sin bin did not help the visitors' cause and the home side took advantage.
Steyn landed a penalty, but failed to convert a try by centre JJ Engelbrecht, who shrugged off several less-than-convincing tackles to touch down for his second try of the tournament.
So'oialo slotted a third penalty off a rare visit to the green-and-gold half, but South Africa struck again with left-wing Bjorn Basson going over in the corner and Steyn converted for a 23-point half-time advantage.
Samoa entered the second half desperate for points and got them within seven minutes when good ball retention off a tap penalty allowed lock Filo Paulo to go over and So'oialo converted.
The fullback had a let-off soon after when, with the crowd baying for a yellow card, he got away with a warning from the French referee for using his hands in an "indecent manner" when grabbing hooker Adriaan Strauss.
"Off, off, off" chanted the crowd within minutes as Springboks skipper Jean de Villiers was the victim of a dangerous tackle by giant Tuilagi, who was red carded after the referee consulted the television match official.
Worse was to follow for the islanders as South Africa won a lineout, set up a maul, and Pienaar darted for the line before sending Habana over in the corner Tuilagi should have been guarding.
A man down on the field and 37-6 down on the scoreboard with a quarter of the Test to go, Samoa knew the game was up and Steyn, Louw and replacement prop Trevor Nyakane added tries, two of which substitute Patrick Lambie converted.
A crumb of comfort for the demoralised Samoans was a try off a clever lineout manoeuvre from substitute forward Junior Poluleuligaga, which skipper and centre Paul Williams converted.
Tries: Bryan Habana (2), Francois Louw (2), JJ Engelbrecht, Bjorn Basson, Morne Steyn, Trevor Nyakane
Conversions: Steyn (3), Pat Lambie (2)
Penalties: Steyn (2)
Tries: Filo Paulo, Junior Poluleuligaga
Conversions: James So'oialo, Paul Williams
Penalties: So'oialo (3)