Shalom Moses Ḥayy Gagin (1833-1883) was the son of Ḥayyim Abraham Gagin and his second wife, Doda Rivka, the daughter of Abraham Shalom Sharʿabi. He was called Shalom Moses after Shalom Sharʿabi and his grandfather Moses Majar, and subsequent Ḥayy was added to his name; thus he is known by the acronym SaMaḤ¤, which was incorporated into the titles of his books. The substantial library he inherited from his father was available to Aryeh Leib Frumkin when compiling SeferEven Shmu' el Kolel Toledot Ḥakhmey Yerushalayim (Vilna, 1874).
Gagin's father died when he was fifteen, and his m…