To whom did the judge turn after the poem?

The Alexandrian Maqāmah — The Judge’s Mercy, Abū Zayd’s Secret and Final Regret