'Amr bin Shu'aib on the authority of his father and grandfather reported:
Messenger of Allah (ﷺ) said, "It is not permissible for a person to sit between two people without their permission."[At-Tirmidhi]. (JA)
App reference (JA): Book 5, Hadith 16 (JA)
Arabic/English book reference (JA): Book 5, Hadith 829 (JA)