Once while Vishnu and Brahma were quarrelling about which of them was superior to the other, Shiva, in the form of a column of light, appeared beside them. The column seemed to have no beginning or end, stretching upwards and downwards as far as the eye could see. The two gods decided that whoever found the top or the bottom of the column first would be deemed to be superior to the other.
So they set out, Vishnu in the form of a boar, and Brahma in the form of a swan. Vishnu descended for aeons together, but could not find the base of the column, and finally gave up the search. Brahma, soaring upwards, was equally unsuccessful in reaching the top. He saw a ketaki flower wafting down, and catching it, returned to the starting point where Vishnu was waiting for him.
Then followed a spot of duplicity. Brahma, claiming success, waved the flower, which he said he had found at the summit, in Vishnu’s face. Vishnu doubted his claim. He asked the ketaki if what Brahma said was true. The flower said it was.
The barefaced lie infuriated Shiva, and he cursed the flower (another version says the flower refused to substantiate Brahma’s claim and that it was Brahma who cursed it). The ketaki, till then considered the best among flowers, lost its importance and was never again offered in worship except on Mahashivratri when it makes a shy appearance.