Hazrat Muslim bin Yasar says that I do not see any harm in performing ghusl for janabah in a clean place and then going to the place of prayer.