The Nigerian government has helped citizens fly back after video footage aired on CNN showed African migrants being sold for labour in what many have called a modern-day slave auction.
President Muhammadu Buhari has described as appalling and unacceptable, the alleged slave trade in Libya.
Meanwhile, Vice President Yemi Osinbajo is now chairing a meeting on the humanitarian situation in Libya and the Sahel.
The disclosure was made by the President while interacting with members of the Nigerian community in Abidjan, Cote D'Ivoire.
"After 43 years of Gadhafi, why are they recruiting so many people from the Sahel, including Nigerians?"
Senior Special Assistant on Diaspora and Foreign Affairs Abike Dabiri-Erewa said 5,000 Nigerians stranded in Libya had been brought back to the country under the Buhari Administration.More news: Claude Puel calls on Riyad Mahrez to show more consistency
"This is why I came along with them so that when we are going to meet you, when you are going to meet the rest of Nigerians, if you tell them that their governors were in the company of the president, I think that will be another vote for me in the future".
This week, 31 people were killed when sharks attacked migrants who fell from overcrowded boats in the Mediterranean.
However, as Italy and the European Union have been financing and training Libya's coastguard to stem the flow of people crossing the Mediterranean, many see their journey to Europe end in Libya. It is absolute madness for people to blow others up in markets, churches and mosques.
On food security, the President said that his vision of repositioning Nigeria as a food-secure nation is on course as the country is on the verge of attaining food security.
According to the President, interventions through the Anchors Borrows Programme of the CBN and the Presidential Fertilizer Initiative, among others, had been very successful in the agricultural reform initiative.
The President, who urged Nigerians in Côte d'Ivoire to be good ambassadors by obeying the law of their host country, enjoined them to also report those portraying the image of the country in bad light to the embassy so that the bad eggs will be flushed out.