Article 38 of Afghanistans Constitution

A person’s residence is immune from invasion.
Other than the situations and methods indicated in the law, no one, including the state, are allowed to enter or inspect a private residence without prior permission of the resident or holding a court order.
In case of an evident crime, an official in-charge of the situation can enter or conduct a house search prior to the permission of the court.
The official involved in the situation is required to obtain a subsequent court order for the house search within the period indicated by law.