Jamal Hussain put the victims through a 20-minute ordeal as they were driving home from a funeral along Leeds inner road, a court heard.
Hussain, 21, had his heavily pregnant wife sat beside him during the incident on March 29 of this year.
Leeds Crown Court was shown a mobile phone recording of the incident. Hussain also made reference to the terror attack on Westminster Bridge, which had happened a week earlier. Four people were killed and 50 injured when 52-year-old Khalid Masood drove a car into pedestrians and fatally stabbed a police officer.
Caroline Abraham, prosecuting, said the couple and a relative were driving home from a funeral when they noticed Hussain behind them in his VW Jetta.
Two teenagers in hospital after crashed motorbike sets on fire on Leeds street
Leeds Olympian Nicola Adams and girlfriend Ella Baig reveal baby boy's name as they talk about parenthood
Caught on camera Leeds: West Yorkshire Police need to speak to these people urgently
Met Office storm warning for Leeds - when the stormy weather is due to hit and how long it will last
17 pictures you'll only understand if you're from Leeds
Hussain began flashing his lights and sounding his horn before pulling alongside them.
One of the occupants of the car filmed Hussain as he shouted the abuse. Miss Abraham said Hussain continued to follow the vehicle for 20 minutes. Hussain, of Halton Moor Avenue, Leeds, pleaded guilty to dangerous driving and racially aggravated harassment.
Assumpta O’Rourke, mitigating, said Hussain was under a great deal of pressure at the time over a long-running family feud.
Recorder Toby Wynn said: “This is a baffling case because there is no rational explanation of why a 21-year-old man behaved in this way in front of his heavily pregnant wife.”
Hussain was given an eight month sentence, suspended for 18 months. He was made the subject of a three month curfew and told he must take part in a 30-day activity programme.