All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad
is His slave and Messenger.
If a person has no one with whom to pray in congregation, then congregational prayer is not obligatory upon him, and he should pray alone, as this is what he is able to do — for Allah, the Exalted, does not burden any soul beyond its capacity.
This is corroborated by the authentic hadith in which the Messenger of Allah
said:
"If I command you to do something, then do of it what you are able to do." (Bukhari)
Allah Knows best.