Quran discusses Khanqah:
فِیۡ بُیُوۡتٍ اَذِنَ اللّٰہُ اَنۡ تُرۡفَعَ وَ یُذۡکَرَ فِیۡہَا اسۡمُہٗ ۙ یُسَبِّحُ لَہٗ فِیۡہَا بِالۡغُدُوِّ وَ الۡاٰصَالِ ﴿ۙ۳۶﴾ رِجَالٌ ۙ لَّا تُلۡہِیۡہِمۡ تِجَارَۃٌ وَّ لَا بَیۡعٌ عَنۡ ذِکۡرِ اللّٰہِ وَ اِقَامِ الصَّلٰوۃِ وَ اِیۡتَآءِ الزَّکٰوۃِ ۪ۙ یَخَافُوۡنَ یَوۡمًا تَتَقَلَّبُ فِیۡہِ الۡقُلُوۡبُ وَ الۡاَبۡصَارُ ﴿٭ۙ﴾
“(This Light of Allah illumines) such houses as Allah has ordained to exalt (i.e., enhance their esteem and honour) and remember His Name therein. (These are the houses) in which (Allah’s servants) glorify Him morning and evening.
(Blessed with this Light) are those servants (of Allah) whom neither trade nor sale diverts from the remembrance of Allah (dhikr). Nor from establishing Prayer and paying Zakat (the Alms-due. Even whilst performing their worldly duties) they keep fearing the Day when hearts and eyes will (all) overturn (with terror).” (24:36-37)
The spiritual leader of Suhrawardi order Shaikh Shahab al-Din Suhrawardi RA writes in his book Awarif ul-Ma’arif, that in this verse ‘houses’ refer to the places where people of dhikr gather i.e. Khanqahs. It does not refer to ‘Mosques’ because Mosques are not like houses. That is to say, they do not provide permanent residence.