Reference: Fataawa al-Lajnah ad-Daa.imah lil-Buhooth al-‘Ilmiyyah wal-Iftaa., – Volume 12, Page 360, Question No.4 of Fatwa No.9296
Question: I am a student in a university, and live with other students in a room in the student dormitories on campus. I do not have the right to move from this room, and am forced to stay here. The students who live with me say that they drink beer. So is there any sin upon me if I sit or eat with them or [even] talk to them?
Response: If it is confirmed that they drink intoxicants, then keep away from them in the dormitory as much as you can if they do not accept your advice to give up this evil act [of drinking alcohol]. If you cannot leave the dormitory, then avoid sitting with them, talking to them and eating with them unless it is necessary, otherwise you will be sinning.
And with Allaah lies all success and may Allaah send prayers and salutations upon our Prophet (sal-Allaahu ‘alayhi wa sallam) and his family and his companions.