Island partitioning is an interesting solution for service restoration in the emergency operation of the smart distribution system. Since rapid decisionmaking is required in an emergency condition, the island partitioning without regard to the time allowed for the implementation of control actions may lead to the violation of the allowable frequency limits and the activation of frequency relays. Therefore, this paper presents a two-stage solution procedure to restore the smart distribution system in emergency condition considering the frequency stability, operational constraints, the position of switches, the load priority and controllability, the controllable and uncontrollable distributed generations, and the time delay in implementation of control actions. In the first stage, considering the frequency stability, the time interval for the implementation of control actions is determined. Then, considering this time interval, the load/generation changes and the boundaries of the partitions are determined, using the partitioning algorithm based on black widow optimization, in order to maximize the value of the restored loads/ minimize the operational cost of DGs. In the second stage, the formed partitions are adjusted to satisfy the operating constraints of the system. Applying the proposed method to the PG&E 69-bus test system, considering different scenarios, and comparing the proposed method with the previous methods show the efficiency of the proposed method.