Green’s Dictionary of Slang

portrait of Madison n.

[the face of James Madison (1751–1836), 4th President of the US, is printed on $5000 bills]

(US) a $5000 bill.

[US]R. Chandler Long Good-Bye 73: Not with a portrait of Madison in it. A portrait of Madison is a $5,000 bill.
[UK]K. Bonfiglioli Don’t Point That Thing at Me (1991) 150: It contained [...] a portrait of Madison. The portrait, of course, was on a thousand dollar [sic] bill.