Where does “-щи” come from?

-щи (Old Church Slavonic) comes from Proto-Slavic -ťi, from Proto-Slavic -kti.

Ancestry of “-щи”, step by step

StepLanguageWordMeaning
1Proto-Slavic-ťiForm of *-ti, used with root-stem verbs ending in...
2Proto-Slavic-kti
Every word from Proto-Slavic -ktiEvery word from Proto-Slavic -ťi