Indian Prime Minister Narendra Modi made a surprise stopover in Pakistan on Friday to meet his counterpart, Nawaz Sharif, the first time an Indian premier has visited the rival nation in over a decade.

Sharif hugged Modi after he landed at the airport in the eastern city of Lahore, state television showed. A spokesman at the Pakistani prime minister's office said the two leaders would discuss a range of bilateral issues, including the disputed Himalayan region of Kashmir.

Modi was on his way home after a visit to Russia. He stopped off in the Afghanistan capital Kabul earlier on Friday.

Modi and Sharif resumed high-level contacts with a brief conversation at climate change talks in Paris late last month, part of efforts to restart a peace dialogue plagued by sporadic skirmishes and long-standing distrust between the nuclear-armed rivals.

Modi, who inaugurated a new parliament complex built with Indian help in Kabul, spoke to Sharif earlier on Friday to wish him on his 66th birthday.

"Looking forward to meeting PM Nawaz Sharif in Lahore today afternoon, where I will drop by on my way back to Delhi," Modi tweeted.

Nalin Kohli, a spokesman for Modi's Bharatiya Janata Party, said in New Delhi that India was ready to take two steps forward if Pakistan took one to improve ties. The countries have fought three wars since 1947, two of them over Kashmir, the divided Himalayan territory that both countries claim in full.

The opposition Congress Party called Modi's visit irresponsible and said that nothing had happened to warrant warming of ties between the rivals. Scheduled high-level talks between the two were canceled in August after ceasefire violations across the border.

"If the decision is not preposterous then it is utterly ridiculous," Congress leader Manish Tewari said.

A close aide to Modi said it was a spontaneous decision taken by the prime minister and National Security Adviser Ajit Doval, and that it should not be seen as a sudden shift in India's position.

"But yes, it's a clear signal that active engagement can be done at a quick pace," the aide said, declining to be identified.

Reuters