The Messenger of Allah ﷺ having said: Allah, Most High, says: "I make a third with two partners as long as one of them does not cheat the other, but when he cheats him, I depart from them." (Using translation from Abū Dāʾūd 3383)
"إِنَّ الله تَعَالى يَقُولُ: أَنا ثَالِثُ الشريكَينِ مَا لَمْ يَخُنْ أحَدُهُما صَاحِبَهُ؛ فَإِذَا خَانَهُ خَرَجْتُ مِن بَينِهِمَا".