E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
The clever, faithful, female slave of Ali Baba, who pries into the forty jars, and discovers that every jar, but one, contains a man. She takes oil from the only one containing it, and, having made it boiling hot, pours enough into each jar to kill the thief concealed there. At last she kills the captain of the gang, and marries her masters son. (Arabian Nights: Ali Baba and the Forty Thieves.)