Section 5. Preliminary Injunction not Granted Without Notice; Exception. —

No preliminary injunction shall be granted without hearing and prior notice to the party or person sought to be enjoined. If it shall appear from facts shown by affidavits or by the verified application that great or irreparable injury would result to the applicant before the matter can be heard on notice, the court to which the application for preliminary injunction was made, may issue ex parte a temporary restraining order to be effective only for a period of twenty (20) days from service on the party or person sought to be enjoined, except as herein provided. Within the twenty-day period, the court must order said party or person to show cause, at a specified time and place, why the injunction should not be granted. The court shall also determine, within the same period, whether or not the preliminary injunction shall be granted, and accordingly issue the corresponding order.

However, subject to the provisions of the preceding sections, if the matter is of extreme urgency and the applicant will suffer grave injustice and irreparable injury, the executive judge of a multiple-sala court or the presiding judge of a single-sala court may issue ex parte a temporary restraining order effective for only seventy-two (72) hours from issuance, but shall immediately comply with the provisions of the next preceding section as to service of summons and the documents to be served therewith. Thereafter, within the aforesaid seventy-two (72) hours, the judge before whom the case is pending shall conduct a summary hearing to determine whether the temporary restraining order shall be extended until the application for preliminary injunction can be heard. In no case shall the total period of effectivity of the temporary restraining order exceed twenty (20) days, including the original seventy-two hours provided herein.

In the event that the application for preliminary injunction is denied or not resolved within the said period, the temporary restraining order is deemed automatically vacated. The effectivity of a temporary restraining order is not extendible without need of any judicial declaration to that effect, and no court shall have authority to extend or renew the same on the same ground for which it was issued.

However, if issued by the Court of Appeals or a member thereof, the temporary restraining order shall be effective for sixty (60) days from service on the party or person sought to be enjoined. A restraining order issued by the Supreme Court or a member thereof shall be effective until further orders.

The trial court, the Court of Appeals, the Sandiganbayan or the Court of Tax Appeals that issued a writ of preliminary injunction against a lower court, board, officer, or quasi-judicial agency shall decide the main case or petition within six (6) months from the issuance of the writ.