Can we sit with those who do not pray?

Can we sit with those who do not pray?

Praise be to Allaah. 
It is permissible to sit with them in order to advise them and tell them to perform the obligatory prayers in jamaa’ah (congregation), not to relax with them and enjoy chatting to them. Otherwise it is haraam to sit with them.