If a ball hits the ground in foul territory then goes fair is it fair or foul?

well if its rolls into fair territory before it passes either the third or first base then it would be fair