The duo are Md Shahidur Rahman, and Md Mahbubur Rahman.
They were arrested from the capital on Tuesday in a case filed with Paltan Police Station against 38 people.
They allegedly trafficked some of the 26 Bangladeshis who were killed in Libya in a gun attack on May 28.
Also read: Bangladeshi killing in Libya: Human trafficker held in city
Dhaka Metropolitan Magistrate Md Tofazzal Hossain passed the order after investigation officer of the case inspector Mizanur Rahman of Criminal Investigation Department sought a seven-day remand to interrogate each of them.
Human traffickers killed 30 migrant workers, including 26 Bangladeshi nationals, in Libya on May 28 in a smuggling warehouse in Mezda, near the city of Gharyan, southwest of Tripoli.
Warlord Haftar’s militiaman Khaled Al-Mishai who was allegedly responsible for murder of 26 Bangladeshis and 4 African migrants in Mizda town, was killed in a drone strike by the Libyan Air Force.
Also read: Suspected killer of 26 Bangladeshis in Libya killed in drone strike
On June 1, Rapid Action Battalion (Rab) members arrested the ringleader of a human trafficking gang Kamal Hossain alias Hazi Kamal, 55, from Khilbarirtek of Shahadatpur area in the Madarirur city in connection with the killings.