It is likely that during the time of the Great Flood when Noah and his family were in the Ark, he taught his sons Shem, Ham, and Japheth about God whom he worshipped.