Three Maryland high school students died in a car crash Tuesday just hours before their school was set to hold its graduation ceremony.

Fox5DC.com reported that investigators said the 1989 Ford F-250 struck a tree in Montgomery County at about 11:30 p.m. The Clarksburg High School juniors reportedly went to a pre-graduation party before the crash.

The three students were identified as driver Jacob Tyler Dennis, 17; Patrick Andrew Shifflett, 18; and Cary Mauri’ce Greene, 17.

Dennis and Shifflett died at the scene. Greene died a short time later at a hospital.

Investigators would not rule out whether alcohol played a role in the crash, The Washington Post reported.

“Please keep the families of our young men in your hearts and prayers tonight and through this time,” Clarksburg's football team posted online.

Click for more from Fox 5.