Spot gold was steady at $2,317.41 per ounce after staying mostly in negative territory earlier in the day
Former Indian navy officer Kulbhushan Sudhir Jadhav was arrested in Pakistan's restive southwestern province of Balochistan in March 2016, and the case has stoked tensions between the two countries.
Judges at the UN's top court ruled Pakistan had breached the Vienna Convention on diplomatic relations, which gives countries the right to consular access when their nationals are arrested abroad.
The Hague-based ICJ ordered the "effective review and reconsideration of the conviction and sentence" passed on Jadhav, according to a document on the court's website.
Pakistan "deprived the Republic of India of the right to communicate with and have access to Mr Kulbhushan Sudhir Jadhav, to visit him in detention and to arrange for his legal representation", the judges said.
"A continued stay of execution constitutes an indispensable condition" for the review of the death sentence, it added.
India hailed the ruling as a "complete victory".
"By ordering Pakistan to follow the Vienna Convention this is a complete victory for us. This opens up the possibility of consular access and a retrial in a civilian court," an Indian government official said.
"If Pakistan wants improved relations it should set him free and give him safe passage back to us."
There was no immediate reaction from Islamabad.
Jadhav, 48, was sentenced to death by a closed Pakistani military court in 2017 on charges of "espionage, sabotage and terrorism".
Jadhav was accused of working for the Indian intelligence services in Balochistan, a province bordering Afghanistan, where Islamabad has long accused India of backing separatist rebels.
In February Pakistan's attorney general told the ICJ that Jadhav's "unlawful activities were directed at creating anarchy in Pakistan and particularly targeted the China-Pakistan corridor".
China and Pakistan are close allies and Beijing has funded a huge port at Gwadar on the Baluchistan coast.
India insists that Jadhav was not a spy and says he was kidnapped in Pakistan.
India's lawyers told the court in February that it was a "farcical case" based on "malicious propaganda".
The last hearing coincided with a sharp spike in tensions between the two nuclear-armed neighbours after a suicide bombing in restive Kashmir, although relations have since improved.
The ICJ was set up in 1946 to rule in disputes between countries.
Reema Omer, International Legal Advisor,South Asia: ICJ has ruled in favour of India on merits, affirming Jadhav's right to consular access and notification. The Court has directed Pakistan to provide effective review and reconsideration of his conviction and sentences pic.twitter.com/Yh3FfDUjbl
- ANI (@ANI) July 17, 2019
Spot gold was steady at $2,317.41 per ounce after staying mostly in negative territory earlier in the day
It is likely to be humid by night and Friday morning over some coastal and internal areas
The Abu Dhabi Awards winner encourages everyone, regardless of their land size, to engage in farming
Geopolitical tensions, economic data likely to affect yellow metal's prices, expert says
The early age for first period is associated with many factors such as higher socio-economic status, obesity, nutritional status and general health
Hundreds of social workers and volunteers are working round the clock, providing essentials to those affected by the unprecedented rainfall
The floodwaters spared nothing, soaking their furniture, rendering household appliances useless, and destroying the newly-purchased school books
Second-placed Liverpool remain three points behind Arsenal, who have a vastly superior goal difference