The prophetic activity of Jeremiah began in the reign of Josiah; he was a contemporary of his relative the prophetess Hulda and of his teacher Zephaniah. These three prophets divided their activity: Hulda spoke to the women and Jeremiah to the men in the street, while Zephaniah preached in the synagogue. When Josiah restored the true worship, Jeremiah went to the exiled ten tribes, whom he brought to Israel under the rule of the pious king. Although Josiah went to war with Egypt against the prophet's advice, Jeremiah knew that this was an error by the otherwise pious king; and later he bitterly laments the king's death: the fourth chapter of Lamentations beginning with a dirge on Josiah.