Narrated Al-Bara’ bin `Azib:
( He was not a liar) We used to pray behind the Prophet (ﷺ) and when he said, “Sami`a l-lahu liman hamidah”, none of us would bend his back (to go for prostration) till the Prophet (ﷺ) had placed his, forehead on the ground.
CONCLUSION:
So, on the basis of the above hadith we should not go for sajdah before the imam.