Words of Encouragement?

I just found out I failed physics and well I feel like complete shxt and don't feel smart. I'm starting to feel myself slowly falling back into the dark hole I thought i escaped. Please offer me study tips and words of encouragement to not give up and stop comparing myself to my classmates. I feel so low rn. I would really appreciate it. Thank you.
Updates
+1 y
I'm a high school student.
Words of Encouragement?
Post Opinion