While studying Islam I ran into his story. Apparently Muhhamed went to the 7th level of heaven and God gave him 50 prayers to give to the Muslims. He went down to the 5th Heaven and told Moses about the 50 prayers.
Moses convinced him to jew down the number of prayers, so Moses goes back up to the 7 th heaven and jews them down to 40 then back to Moses who said "too many"
This went back and forth several times until Muhhamed with the help of Moses Jewett God down to 5 prayers and then Moses told Muhhamed "Good job" .
And that is why Muslims pray 5 times a day now.