The newspaper ad shows Goddess Durga, along with her children Kartik, Lakshmi, Saraswati and Ganesh, at Mr Habib's salon along with the tag, "Gods too visit JH salon."
Following the backlash he faced online, the renowned hair stylist wrote on Twitter: "If our ad campaign had inadvertently hurt anyone's sentiments, we apologise for that."
Meanwhile, a lawyer in Uttar Pradesh has filed a court case against Mr Habib for using images of Hindu gods and goddesses in the advertisement to promote his salons.
Lawyer Vinay Pandey moved an application in the court of Chief Judicial Magistrate in UP, saying that Mr Habib, a hair stylist whose clientele include many eminent persons across the country, had recently issued an advertisement that allegedly showed Hindu gods and goddesses sitting in his salon as customers.
The petitioner said the advertisement was available on the social media, and added that it had hurt the sentiments of millions of Hindus.
(With inputs from IANS)