Abram
After receiving the Abrahamic Covenant and learning about the Promised Land of Canaan, Abram traveled in Canaan until severe famine drove him to Egypt. (Genesis 12)
David
There was a 3-year famine in Israel under King David. David sought the LORD and went to resolve the bloodguilt of Saul's house by handing over 7 of Saul's sons to be hanged. When Saul, Jonathan, and his hanged sons were properly interred in Kish's tomb, God responded to the plea for the land. (2 Samuel 21:1-14)