Shmuel Binyomin Sofer was born in Pressburg on March 12, 1815. His father, the famed Chasam Sofer, Rabbi of Pressburg, was the leader of Hungarian Jewry and one of the leading Rabbi's of European Jewry. His mother Sarel was the daughter of Rabbi Akiva Eger, Rabbi of Posen, one of the greatest Talmudic scholars of his time. When he was six years old, his family fell ill and among them little Shmuel Volf, as he was called. The doctors had already given up on him. As a segulah they added "Avraham" to his name, but to no avail. They already called the Chevra Kadisha and lit candles as was the custom of the time and they said the last rites. Then the doctors approached his father the Chasam Sofer and said "We know that you are a Godly and holy man; if with your prayers you cannot help your son; on our part, all hope is lost". After hearing this; the Chasam Sofer went to a corner where all his manuscripts were; and said a short prayer. At that time the sick child Avraham Shmuel Binyomin in his great weakness started screaming the Shema, and their prayers were answered; Shmuel Binyomin's condition took a turn for the better. The bewildered doctors said to the Chasam Sofer; now we truly know that you are a Godly man; to which he answered, "I hadn't given up hope, not even for a second." The great pupils of the Chasam Sofer later testified that the Chasam Sofer said at the time that "for one Jubilee, I begged him out"; as Shmuel Binyomin lived for another fifty years and died at age fifty six. He first studied under Rabbi Mordechai Ephraim Fishel Sofer and then entered his father's famous Yeshiva; and became one of its outstanding students. At age eighteen in 1833 he married Chavah Leah Weiss, daughter of Rabbi Yitzchok Weiss of Gorlitz, who was well known for his piety. The latter gave him a large dowry and promised to support him for 15 years. The wedding was held in the town of Kamaren after which the couple settled in Pressburg where Sofer continued his studies and helped his father with the yeshiva.
On December 31, 1871 the Ksav Sofer died in Bratislava and the mantle as Rabbi of Pressburg passed to his son, Rabbi Simcha Bunim Sofer known as the Shevet Sofer. Another son, Rabbi Shimon Sofer was appointed as Rabbi of Erlau. Shimon's grandson Rabbi Yochanan Sofer has established numerous Synagogues in Israel and one in the USA, naming them Kehila Kdosha Ksav Sofer.