it refers to salat not believe. its from Book 8, and complete hadith goes as
Narrated Anas bin Malik:
Allah's Apostle said, "I have been ordered to fight the people till they say: 'None has the right to be worshipped but Allah.' And if they say so, pray like our prayers, face our Qibla...