Peter Parker saved his friend from suspension by pretending that he was the one who brought a knife to school. Because of his reputation and being on the honor roll, he was merely given 2 weeks of detention. When Uncle Ben got the real story out of Peter, he told him he was proud of him.
From – Amazing Spider-man Vol. 1 #516