Police had got secret information that one of them was residing in Narsinghpur village and the other was working in a godown located at Basai Chowk in Gurgaon.
The duo were identified as Mohammad Milan, a resident of Begar district of Bangladesh, and Jamil, a native of district Khulna of the country, a police spokesman said here.
He said both had been residing illegally in India for long.
A case has been registered against them, he said, adding further investigations were on.