PM, COAS vow to bring stability to country