One verse

Srimad Bhagavatam 7.14.39

7.14.39

द‍ृष्ट्वा तेषां मिथो नृणामवज्ञानात्मतां नृप । त्रेतादिषु हरेरर्चा क्रियायै कविभि: कृता ॥ ३९ ॥

drstva tesam mitho nrnam avajnanatmatam nrpa tretadisu harer arca kriyayai kavibhih krta

drstva
after practically seeing
tesam
among the brahmanas and Vaisnavas
mithah
mutually
nrnam
of human society
avajnana-atmatam
the mutually disrespectful behavior
nrpa
O King
treta-adisu
beginning from Treta-yuga
hareh
of the Supreme Personality of Godhead
arca
the Deity worship (in the temple)
kriyayai
for the purpose of introducing the method of worship
kavibhih
by learned persons
krta
has been done

My dear King, when great sages and saintly persons saw mutually disrespectful dealings at the beginning of Treta-yuga, Deity worship in the temple was introduced with all paraphernalia.