Hall said parents were notified of the incident.
"We preach every day to the students in our community, 'If you see something, say something,'" Brent Patterson, a Madison County Sheriff's Office spokesman, told AL.com. "That's what happened in this case."
An anonymous student reported seeing the gun, the Sheriff’s Office said in a statement
In a statement posted on Facebook, Sparkman High School Principal Chris Shaw said the student will be disciplined according to district policy and would not return to the school.
"There's nothing more important to us than the safety of our students," Shaw wrote.