Madinah is quieter than Makkah, and most visitors find that two or three nights are enough for prayer in the mosque and the main visits.
Hotels in the central area are within a few minutes of the gates on foot, so you can return to your room between prayers instead of waiting in the courtyards.
A guided half-day tour covers Quba Mosque, Mount Uhud and the other historic sites comfortably, and is best booked for the morning.