Brihat Parashara Hora Shastra
तत्काले च निसर्गे च मित्रं चेदधिमित्रकम्। मित्रं मित्रसमत्वे तु शत्रुः शत्रुसमत्वके॥ ५७॥
Compound Relationship. Should two Grahas be naturally and temporarily friendly, they become extremely friendly. Friendship on one count and neutrality on another count make them friendly. Enmity on one count combined with affinity on the other turns into equality. Enmity and neutralship cause only enmity. Should there be enmity in both manners, extreme enmity is obtained.
english translation
tatkAle ca nisarge ca mitraM cedadhimitrakam। mitraM mitrasamatve tu zatruH zatrusamatvake॥ 57॥
hk transliteration by Sanscript