It can be compared with other works on the same theme by the same painter in Madrid, Washington, and Antwerp and a Virgin and Child in Rotterdam. The composition is near-identical to the Madrid and Washington examples, though the New York one shows an apple branch instead of a basket.
The Flight into Egypt derives from the Gospel of Matthew (II.13-18), though it does not mention a rest, which derives from apocryphal accounts. It was a popular theme for painters in many periods. David painted it on several occasions using different compositions,[2] possibly not as the result of commissions but simply painted to put on the open market. Many of them are near-identical but for a few small details. However, in all of them David focuses attention on the seated Virgin Mary breastfeeding the Christ Child, enthroned in front of a deep forest landscape background. In the far background there is usually a scene related to either the rest or to the journey to Egypt.