A patient with atrial fibrillation has a heart rate of 130 bpm and is hemodynamically stable.The onset is confirmed to be 36 hours ago.What is the preferred initial management?