And did they spread this hate?
Do you mean from a historical standpoint? It depends on the culture, but it's pretty recent in its current iteration — in the west, it followed the rise of Christianity. For much of western history at least, it was considered OK to pitch, within reason (manly!) but not to catch (effeminate!). Warring states China was pretty similar. I'm less familiar with India but in any case that would have been suppressed by the Mughals.
Thanks I thinking if Christianity was the main reason Homophobia or was there many smaller sources
It was in Zoroastrian tradition around the time Persia was conquering Greece. Definitely not a "Christian thing".
There is no first record, it's sadly eternal. Heck, homophobia exists in dolphins.
If you define homophobia as targeting other individuals for their homosexuality, it's quite documented in dolphins. They will gang assault (the bad kind of gang assault) other dolphins they see as fair game, often based on what their relationship status is.
Dolphins have definitely been observed demonstrating a mindset of "I don't care about your interests, you were born to serve my own."