Jami` at-Tirmidhi #218
The Book on Salat (Prayer) 2:70
Mujahid said:
"Ibn Abbas was asked about a man who fasted during the day and stood (in prayers) during the night, but he did not attend the Friday prayer nor congregational prayer. He replied: 'He is in the Fire.'"