The Salat was made compulsory on all the holy messengers of Allah right from the Holy Prophet Hadrath Adam (A.) to till date. However the number & mode was different. & now in Islamic shariat the procedure prescribed is most perfect.
"There is no Muslim who calls upon his Lord with a dua in which there is no sin or severing of family ties, but Allah will give him one of three things: Either He will answer his prayer quickly, or He will store (the reward for) it in the Hereafter, or He will divert an equivalent evil away from him." [At Tirmidhi].
“When my prayers are answered, I am happy because it was my wish. "When my prayers are not answered, I am even more happy because that was gods wish.” Ali Ibn Abi Talib P/s: Allah is the best of planners ^_^