A woman has been filmed banging furiously on the windows of a car and shouting at a woman wearing a niqab sitting inside, "Why you wearing a mask?"

In a Facebook post, Ramzy Alamudi said he and his wife were getting in their car at Macquarie University on Friday afternoon when they noticed the woman staring at them.

Mobile phone footage shows the woman continuing to yell at Mr Alamudi. Credit:Facebook/Emily Grace Guff

Mr Alamudi said his wife, who had just finished her final exam in her medical science degree, noticed the woman looking at them and waved and smiled at her as they got into the car.

"This is where the entire situation just turned upside down. The lady flips it and sticks her middle finger right at us," Mr Alamudi wrote on his post.