Lagos - Nigeria says it has agreed to Cameroon's voluntary return of 80 000 Nigerian refugees who have fled the Boko Haram Islamic insurgency.
Nigerian officials had said Cameroon was threatening to force the repatriation. Cameroon previously has dumped thousands on the border.
Nigerian emergency agency spokesperson Sani Datti said on Sunday that an agreement for their return "voluntarily and in a dignified manner" had been signed by the UNHCR refugee agency, Nigeria and Cameroon.
Last month, Nigerians who had returned home were blocked from returning to Cameroon though they complained they did not have enough water as temperatures soared over 42°C.
A new influx will tax Nigerian officials struggling to cater for 2.1 million people displaced within the country. The UN says another 600 000 are displaced in the region.