this , of course , is the one that got galileo into trouble because the holy see was in agreement with aristotle , and therefore also the peripatetics on this last issue due to several statements in the bible , perhaps the most often cited is the line wherein joshua , who had succeeded moses as the leader of the isrealites , asked god to command the sun and the moon to stand still for a day so that the israelites could defeat the amorites at gibeon .