أَخْبَرَنَا مُسْلِمٌ، عَنِ ابْنِ جُرَيْجٍ، عَنْ عَطَاءٍ، قَالَ: سَمِعَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ رَجُلًا يَقُولُ: لَبَّيْكَ عَنْ فُلَانٍ، فَقَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: "إِنْ كُنْتَ حَجَجْتَ فَلَبِّ عَنْهُ، وَإِلَّا فَاحْجُجْ" .
It is narrated from Ata who reports that the Prophet ﷺ heard a man saying: "I am present on behalf of so-and-so." So the Prophet ﷺ said: "If you have performed Hajj before, then say Labbaik on his behalf, and if not, then first perform Hajj for yourself."