Yes, it is a pre-islamic tradition traceable at least to the Parthian time of Persian empire. As almost everything positive in the Middle East it existed before Islam.
They had a hell of a great civilization until Jimmy the Liverspot conspired with the Aya-Toilets to undermine it.