The painting is a preparatory study for the altarpiece commisssioned by Cardinal Flavio Chigi (1631-1693) for his private chapel in Palazzo Chigi in Piazza Santi Apostoli in Rome. The picture was left to the Accademia di San Luca by the art collector Fabio Rosa.