The Pakistani nationals were released from different jails of the country, including three from Amritsar and one from Tihar jail in Delhi, an official at the Attari border said.
The released prisoners were arrested for allegedly carrying drugs to India.
The official said that all the Pakistani nationals crossed over to their country on the basis of 'Emergency Travel Certificate' issued by the Pakistani High Commission based at New Delhi.