You would tread the same path as was trodden by those before you inch by inch and step by step so much so that if they had entered into the hole of the lizard, you would follow them in this also. We said: Messenger of Allah, do you mean Jews and Christians (by your words)" those before you"? He said: Who else (than those two religious groups)? (Using translation from Muslim 2669a)
أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَتَتَّبِعُنَّ سُنَنَ الَّذِينَ مِنْ قَبْلِكُمْ شِبْرًا بِشِبْرٍ وَذِرَاعًا بِذِرَاعٍ حَتَّى لَوْ دَخَلُوا جُحْرَ ضَبٍّ لَتَبِعْتُمُوهُمْ قُلْنَا يَا رَسُولَ اللهِ الْيَهُودُ وَالنَّصَارَى؟ قَالَ فَمَنْ؟