I have a teacher in the netherlands where lessons are scarce. He teaches the matn 40 of an nawawi and fiqh within the hanbali school. Sometimes he is seen with people of misguidance en he follows them on social media. He appears on the same platforms as them. Leave him or take knowledge from him?

Ustadh AbdulAziz al-Haqqan
How can I judge him like this based on one short message? Such a matter is a lot bigger than this, and we should fear Allah regarding the ibad of Allah.