Which image underlies aḥkama mā shāda?

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