UP court to hear petition related to Pakistan PM on Aug 26 :