Ali 'Imran 3:97
فِيهِ ءَايَـٰتٌۢ بَيِّنَـٰتٌ مَّقَامُ إِبْرَٰهِيمَ ۖ وَمَن دَخَلَهُۥ كَانَ ءَامِنًا ۗ وَلِلَّهِ عَلَى ٱلنَّاسِ حِجُّ ٱلْبَيْتِ مَنِ ٱسْتَطَاعَ إِلَيْهِ سَبِيلًا ۚ وَمَن كَفَرَ فَإِنَّ ٱللَّهَ غَنِىٌّ عَنِ ٱلْعَـٰلَمِينَ
Feehi ayatun bayyinatunmaqamu ibraheema waman dakhalahu kana aminanwalillahi AAala annasi hijjualbayti mani istataAAa ilayhi sabeelan waman kafarafa-inna Allaha ghaniyyun AAani alAAalameen
"In it are clear signs [such as] the standing place of Abraham. And whoever enters it [i.e., the Ḥaram] shall be safe. And [due] to Allāh from the people is a pilgrimage to the House - for whoever is able to find thereto a way. But whoever disbelieves [i.e., refuses] - then indeed, Allāh is free from need of the worlds."
Ali 'Imran 3:97, translation by Sahih International
A short reflection
Pilgrimage to the House is a duty owed to Allah by those who can make their way.