Harrow Crown Court in London heard that Ashley Smith and his accomplice did not count on Bosnia defender Kolasinac fighting back.
Ozil then drove the two players from the ambush as the would-be robbers pursued them on a stolen moped and threw stones, the court heard.
Both players were unharmed.
The 30-year-old Smith was described by the judge, Ian Bourne, as a prolific “career criminal” who was well known to police.
Smith had previously pleaded guilty to the attempted robbery just feet from Kolasinac’s home in Hampstead, north