In 1460, the Jews of Ofen (Buda, now part of Budapest, Hungary) received King Matthias Corvinus with a red flag on which were two Shields of David and two stars. In the first Hebrew prayer book, printed in Prague in 1512, a large hexagram appears on the cover. In the colophon is written: "Each man beneath his flag according to the house of their fathers...and he will merit to bestow a bountiful gift on anyone who grasps the Shield of David." In 1592, Mordechai Maizel was allowed to affix "a flag of King David, similar to that located on the Main Synagogue" on his synagogue in Prague. Following the Battle of Prague (1648), the Jews of Prague were again granted a flag, in recognition in their contribution to the city's defense. That flag showed a yellow hexagram on a red background, with a star placed in the center of the hexagram.