By the time Harry and Ron went into the forest, Hagrid was already in Azkaban, for a crime he never commited. The boys took Fang with them when they went to meet Aragog, who almost killed them. Hagrid never went into the forest in either book or movie.
If you are talking about the second movie, it was Ron and Harry, but only following Hagrid's advice (he had already been taken to Azkaban and was unable to accompany them). If you meant the first movie, it was Harry, Ron, Hermione, and Draco (in the books, it was Harry, NEVILLE, Hermione, and Draco; Ron had not been given detention).
Ok first movie was Draco,Ron,Hermione,Harry and fang.
Second was just Ron and Harry cause hagrid never went into the forest in the second as everyone already pointed out! Haha