Pakistan is home to the world's second-largest refugee population, with a total of 2.5 million Afghans, many of whom been living there since the Soviet invasion of Afghanistan in 1979.
But relations between the neighbours have deteriorated in recent years and took another turn for the worse this week after bloody Taliban attacks in Kabul.
Afghanistan and the United States say Taliban and other terrorists plot carnage in safe havens on the Pakistani side of the border and have repeatedly called on Pakistan to do more to rein them in.
The tense relations led to concern that Pakistan might retaliate by pushing back Afghan refugees, particularly since official permission to stay was only extended for 30 days at the beginning of this month.
But a spokesman for Pakistan's Ministry of States and Frontier Regions said it had decided that permission to stay should be extended for another five months.
"The main reason for the extension is that it isn't possible humanly to ask over one million people to leave at once," the spokesman, Aqdas Shaukat, told Reuters.
"Our understanding is that another five months will give the refugees a good time to leave gradually."
The cabinet would decide on the recommendation next week, he said.
It is already struggling to help those refugees who have come back over recent years as well people displaced internally by fighting.
In 2017, fighting forced 360,000 people from their homes, the United Nations said in a recent report, while more than 17,000 people were displaced over the past week, the U.N. Organisation for the Co-ordination of Humanitarian Assistance said.
On the outskirts of Kabul, refugees who have come back from Pakistan and internally displaced people eke out a living on a windswept, muddy plain and wait for help.
"We returned from Pakistan and have nothing here," said one woman called Shazia, who came back three years ago.
"Our children collect plastic and paper to keep us warm."
Another returnee from Pakistan, Etibar Gul, also worried about his children.
"There is no food or clothing," he said. "Our children have nothing to wear in this cold."
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.