David ben Aryeh Leib Lida ( 1650 â 1696) wrote works of rabbinic literature, including Sefer Shomer Shabbat and books on the 613 Mitzvot, bris milah, the Shulchan Aruch, the Book of Ruth, and Jewish ethics (Divrei David, 1671).
He was accused of Sabbateanism and plagiarism, but was absolved of the former charges by the Council of the Four Lands. He died in Lviv.
According to the Jewish Encyclopedia: "The inscription on his tombstone bears the date 5450 = 1690, but Polak (see "Ḳol Bat Gallim," p. 3) proves this to be a mistake, as several works are extant which were endorsed by him after the year given in the inscription. Stern (see "Bikkurim," i., Preface, p. xxxvi.) gives Ḥeshwan, 5448, which may, however, be a misprint for 5458 = 1698."
His work Migdal David was reputed to have been plagiarized from the Torat hesed of Hayyim ben Abraham ha-Kohen. While the Council of the Four Lands cleared him of several other charges that had been leveled against him, the charge of plagiarism remained a stain on his reputation.
Later scholars, such as Chaim Yosef David Azulai and Heimann Joseph Michael, considered the true author of Migdal David to have been Hayyim ha-Kohen.