Want to leave behind legacy of peace; ready for dialogue with India for prosperity, development: PM