The Battle of Badr took place on the 17th of Ramadan, two years after the Prophet (peace and blessings be upon him) migrated to Madinah.