The solution is follows:
In a mixture of two immiscible liquids, the one having higher density occupies lower layer and the one with lower density occupies upper layer.
This principle is used to separate two immiscible liquids.
For a mixture of dichloromethane and water, dichloromethane having higher density occupies lower layer and thus, filters out first.