Sunan Abi Dawud, Book 19, Hadith 3020 (USC-MSA)

Narrated Uthman ibn Abul'As: When the deputation of Thaqif came to the Messenger of Allah, he made them stay in the mosque, so that it might soften their hearts. They stipulated to him that they would not be called to participate in Jihad, to pay zakat and to offer prayer. The Messenger of Allah said: You may have the concession that you will not be called to participate in jihad and pay zakat, but there is no good in a religion which has no bowing (i.e. prayer).

حَدَّثَنَا أَحْمَدُ بْنُ عَلِيِّ بْنِ سُوَيْدٍ، - يَعْنِي ابْنَ مَنْجُوفٍ - حَدَّثَنَا أَبُو دَاوُدَ، عَنْ حَمَّادِ بْنِ سَلَمَةَ، عَنْ حُمَيْدٍ، عَنِ الْحَسَنِ، عَنْ عُثْمَانَ بْنِ أَبِي الْعَاصِ، أَنَّ وَفْدَ، ثَقِيفٍ لَمَّا قَدِمُوا عَلَى رَسُولِ اللَّهِ صلى الله عليه وسلم أَنْزَلَهُمُ الْمَسْجِدَ لِيَكُونَ أَرَقَّ لِقُلُوبِهِمْ فَاشْتَرَطُوا عَلَيْهِ أَنْ لاَ يُحْشَرُوا وَلاَ يُعْشَرُوا وَلاَ يُجَبُّوا فَقَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ لَكُمْ أَنْ لاَ تُحْشَرُوا وَلاَ تُعْشَرُوا وَلاَ خَيْرَ فِي دِينٍ لَيْسَ فِيهِ رُكُوعٌ ‏" ‏ ‏.‏

sunnah.com