كتاب الطهارة وسننها
Read the English translation first, with the original Arabic directly underneath.
It was narrated by 'Abdul-Muhaimin bin 'Abbas bin Sahl bin Sa'd As-Sa'idi, from his father, from his grandfather, that:
The Prophet (ﷺ) said: "There is no prayer for one who does not have ablution, and there is no ablution for one who does not mention the Name of Allah (before it). There is no prayer for one who does not send blessing, (Salat) upon the Prophet, and there is no prayer for one who does not love the Ansar." (Da'if) Another chain with similar wording.
لاَ صَلاَةَ لِمَنْ لاَ وُضُوءَ لَهُ وَلاَ وُضُوءَ لِمَنْ لَمْ يَذْكُرِ اسْمَ اللَّهِ عَلَيْهِ وَلاَ صَلاَةَ لِمَنْ لاَ يُصَلِّي عَلَى النَّبِيِّ ـ صلى الله عليه وسلم ـ وَلاَ صَلاَةَ لِمَنْ لاَ يُحِبُّ الأَنْصَارَ