The spread of immorality is one of the signs of the Hour
Question

Is there a hadith where the prophet pbuh said that towards the end of time homosexuality will get spread then pedophilia will get spread then bestiality will get spread?
Praise be to Allah.We have not come across any hadith speaking of what is mentioned in the question or the order of events mentioned, but there are hadiths which indicate that one of the signs of the Hour is the spread of immorality among people.
The evidence for that includes the following:
It was narrated that Anas ibn Maalik said: The Messenger of Allah (blessings and peace of Allah be upon him) said: “Some of the portents of the Hour are that knowledge will be taken away, ignorance will prevail, wine will be drunk and zina will become widespread.” Narrated by al-Bukhaari (80) and Muslim (2671).
It was narrated that ‘Abd ar-Rahmaan ibn Ghanm al-Ash‘ari said: Abu ‘Aamir or Abu Maalik al-Ash‘ari told me, and by Allah he did not lie to me, that he heard the Prophet (blessings and peace of Allah be upon him) say: “Among my ummah there will be people who will regard as permissible zina, silk, khamr and musical instruments. And there will be some people who will stay near the side of a mountain and in the evening their shepherd will come to them with their sheep and ask them for something, but they will say to him, ‘Come back to us tomorrow.’ Allah will destroy them during the night and will let the mountain fall on them, and He will transform the others into monkeys and pigs and they will remain like that till the Day of Resurrection.” Narrated by al-Bukhari (5590).
It was narrated that ‘Abdullah ibn ‘Amr said: The Messenger of Allah (blessings and peace of Allah be upon him) said: “The Hour will not begin until you copulate in the street like donkeys.”
Narrated by al-Bazzaar (6/345) and Ibn Hibbaan (15/169-170), Classed as saheeh by al-Albaani in as-Silsilah as-Saheehah (1/867-869), then he quoted corroborating evidence for it, including the report narrated by Abu Ya‘la in al-Musnad (11/43-44) from Abu Hurayrah, from the Prophet (blessings and peace of Allah be upon him), who said: “By the One in Whose hand is my soul, this ummah will not cease to be until a man comes to a woman and has intercourse with her in the street, and the best of them on that day will be the one who says: Why don’t you take her behind this wall?”
It was narrated from Ibn ‘Abbaas that the Messenger of Allah (blessings and peace of Allah be upon him) said: “You will certainly follow the ways of those who came before you handspan by handspan, cubit by cubit, to the extent that if they entered the hole of a lizard, you will enter it too, to the extent that if one of them were to have intercourse with his mother in the street, you would do it too.”
Narrated by ad-Doolaabi in al-Asma’ wa’l-Kuna (2/731); classed as saheeh by al-Albaani in as-Silsilah as-Saheehah (3/334).
We ask Allah, by His mercy, to protect us and you from trials and tribulations, both obvious and hidden.
And Allah knows best.