A bench of justices Pradeep Nandrajog and R K Gauba issued the order on a plea questioning whether the precincts of the High Court can be used by any community to profess and practice their religion.
The court has listed the matter for further hearing on March 11.
The order came on the public interest petition filed by one Ajay Gautam alleging that religious activity in the mosque inside High Court premises "has been going on for a long time without there being any formal approval for the same from the officials of the court or from any other competent authority.
The petitioner has claimed that in response to his Right to Information application to the Archaeological Survey of India (ASI), the authority on January 15, last year, had said that no such ancient structure or ancient mosque exists inside the High Court.
"It is important to mention here that from the reply of the ASI it has become crystal clear that the structure situated near Gate no. 5 of the Delhi High Court is not ancient in nature and it has been created somewhere in the near past by the members of Muslim community without any due sanction and approval," his petition said.
"The petitioner herein has raised this issue before the High Court vide letter petition dated December 21, 2013. However, no action has been taken till date on the representation..."
Central government standing counsel Anil Soni appeared for ASI in the matter.
