Harry Potter received the broken two-way mirror from his father, James Potter.
It was originally a birthday gift from James to Lily (Harry's mother). James engraved their initials on the back: "J.P.W.P.S." (James Potter, We Share the Secret), enabling secret communication. The mirror later broke; Sirius Black, James's best friend, found the pieces in the wreckage of the Potters' house and kept them as a remembrance. He eventually gave the mirror to Harry as a gift.