BT Šab 30b(36) :הא מקמי דפתח הא לבתר דפתח : the one case was before he opened, the other after he opened See the entire entry for mqmy prep. before