Mishkat al-Masabih 35
Anas said:
God’s messenger seldom addressed us without saying, “He who is not trustworthy has no faith, and he who does not keep his covenant has no religion."

Baihaqi transmitted it in Shu'ab al-lman.
وَعَنْ أَنَسٍ رَضِيَ اللَّهُ عَنْهُ قَالَ: قَلَّمَا خَطَبَنَا رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِلَّا قَالَ: «لَا إِيمَانَ لِمَنْ لَا أَمَانَةَ لَهُ وَلَا دِينَ لِمَنْ لَا عَهْدَ لَهُ» . رَوَاهُ الْبَيْهَقِيُّ فِي شُعَبِ الْإِيمَانِ