Students standing up when their teacher enters the classroom

Q: It is reported that the Messenger (peace be upon him) came out leaning on a walking stick towards some of his Sahabah (Companions). They stood for him and he said to them: Do not stand up as non-Arabs do to show respect to one another. (A) What is the ruling on students standing up when their teachers enter the classroom? (B) Is it permissible for people to stand up to greet and shake each others' hands in meetings?

A: The best guidance is that of Muhammad (peace be upon him), and the worst matters are the Bid`ahs (innovations in religion). The best generation is the generation when the Messenger (peace be upon him) lived and those who came after them as it is authentically reported from the Messenger of Allah (peace be upon him). The guidance received from the Prophet (peace be upon him) in this regard is that he forbade his Sahabah from standing up for him upon his coming. The Sahabah abstained from doing this act that the Prophet disliked. Therefore, teachers should not ask their students to stand up for them. Students should not obey their teachers in this regard. (Part No. 1; Page No. 235) No human being is to be obeyed in defiance to Allah.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.