Through non-genetic maternal effects, mothers can tailor offspring phenotype to the environment in which young will grow up. If juvenile and adult ecologies differ, the conditions mothers experienced as juveniles may better predict their offspring's environment than the adult environment of mothers. In this case maternal decisions about investment in offspring quality should already be determined during the juvenile phase of mothers. I tested this hypothesis by manipulating juvenile and adult maternal environments independently in a cichlid fish. Females raised in a poor environment produced larger young than females raised without food limitations, irrespective of the feeding conditions experienced during adulthood. This maternal boost was due to a higher investment in eggs and to faster larval growth. Apparently, mothers prepare their offspring for similar environmental conditions to those they encountered as juveniles. This explanation is supported by the distribution of these fishes under natural conditions. Juveniles live in a different and much narrower range of habitats than adults. Therefore, the habitat mothers experienced as juveniles will allow them to predict their offspring's environment better than the conditions in the adult home range.