What literary device appears in qaws al-khuṭūb?

The Maʿarran Maqāmah — The Needle, Its Compensation, and the Judge’s Dinar